<!--
type="company" 
block="block/starter_kit.js"
generator="generator/starter_kit.js" 
language="language/" 
lib="starter_kit"
hardware="arduino/hardware"
media="media/starter_kit" 
-->


<script type="text/javascript" src="../../blocks/company/starter_kit.js"></script>
<script type="text/javascript" src="../../generators/arduino/company/starter_kit.js"></script>

<category id="starter_kit" name="keyes 基础套件" colour="20">

	<!--                  控制输出                 -->
	<category id="controloutput1" name="数字输出" colour="20">
	
	        <!--          LED灯          -->
		<block type="basic_led1">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
		</block>
		<block type="basic_led2">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
		</block>
		<block type="basic_led3">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
		</block>
		<block type="basic_led4">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
		</block>

         <!--          PWM输出          -->
		<block type="basic_a_Write">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
			<value name="num">
				<shadow type="math_number">
					<field name="NUM">0</field>
				</shadow>
			</value>
		</block>


		<block type="basic_rgb01">
			<value name="R">
				<shadow type="pins_digital">3</shadow>
			</value>
			<value name="r">
				<shadow type="math_number">
					<field name="NUM">0</field>
				</shadow>
			</value>
			<value name="G">
				<shadow type="pins_digital">5</shadow>
			</value>
			<value name="g">
				<shadow type="math_number">
					<field name="NUM">0</field>
				</shadow>
			</value>
			<value name="B">
				<shadow type="pins_digital">6</shadow>
			</value>
			<value name="b">
				<shadow type="math_number">
					<field name="NUM">0</field>
				</shadow>
			</value>
		</block>

		

		<block type="basic_y_buzzer">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
		</block>
		<block type="basic_tone">
			<value name="tone">
				<shadow type="FREQUENCY"></shadow>
			</value>
		</block>
		<block type="basic_w_buzzer2">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
			<value name="FREQUENCY">
				   <shadow type="basic_tone"></shadow>
			</value>
		</block>
		<block type="basic_w_buzzer1">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
		</block>
		<block type="basic_w_buzzer3">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
			<value name="FREQUENCY">
				   <shadow type="basic_tone"></shadow>
			</value>
			
			<value name="DURATION">
				<shadow type="math_number">
					<field name="NUM">1000</field>
				</shadow>
			</value>
		</block>
		<block type="basic_motor">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
		</block>

		<block type="basic_stepper">
			<value name="PIN1">
				<shadow type="pins_digital">
					<field name="PIN">8</field>
				</shadow>
			</value>
			<value name="PIN2">
				<shadow type="pins_digital">
					<field name="PIN">9</field>
				</shadow>
			</value>
			<value name="PIN3">
				<shadow type="pins_digital">
					<field name="PIN">10</field>
				</shadow>
			</value>
			<value name="PIN4">
				<shadow type="pins_digital">
					<field name="PIN">11</field>
				</shadow>
			</value>
			<value name="steps_val">
				<shadow type="math_number">
					<field name="NUM">100</field>
				</shadow>
			</value>
			<value name="speed_val">
				<shadow type="math_number">
					<field name="NUM">150</field>
				</shadow>
			</value>
		</block>

		<block type="basic_stepper_steps">
			<value name="steps">
				<shadow type="math_number">
					<field name="NUM">2048</field>
				</shadow>
			</value>
		</block>

	</category>


	<!--                数字传感器              -->
	<category id="digitalRead" name="数字输入" colour="20">

		<!--          火焰传感器               -->
		<block type="basic_flame">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
		</block>
		

		<!--          按键传感器               -->
		<block type="basic_button">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
		</block>
		
		
		<!--          倾斜传感器               -->
		<block type="basic_tilt">
			<value name="PIN">
				<shadow type="pins_digital"></shadow>
			</value>
		</block>


	</category>

	<!--               模拟传感器              -->
	<category id="analogRead" name="模拟输入" colour="20">

        <!--              模拟温度传感器              -->
		<block type="basic_analog_t">
			<value name="PIN">
				<shadow type="pins_analog"></shadow>
			</value>
		</block>
	
		<!--              光线传感器              -->
		<block type="basic_light">
			<value name="PIN">
				<shadow type="pins_analog"></shadow>
			</value>
		</block>
	
		<!--              电位器传感器              -->
		<block type="basic_potentiometer">
			<value name="PIN">
				<shadow type="pins_analog"></shadow>
			</value>
		</block>
   </category>
	
	<category id="print" name="显示屏" colour="20">

		<!--           1位数码管              -->
		<block type="basic_seg1">
			<value name="num">
				<shadow type="math_number">
					<field name="NUM">0</field>
				</shadow>
			</value>
		</block>

		<!--           4位数码管              -->
		<block type="basic_seg4">
			<value name="num">
				<shadow type="math_number">
					<field name="NUM">0</field>
				</shadow>
			</value>
		</block>

        <!--                1602LCD                    -->
		<block type="basic_1602lcd">
			<value name="TEXT1">
				<block type="text">
					<field name="TEXT1"></field>
				</block>
			</value>
			<value name="TEXT2">
				<block type="text">
					<field name="TEXT2"></field>
				</block>
			</value>
		</block>

		<!--                点阵8*8                    -->
        <block type="basic_matrix_init" name="点阵屏显示_初始化">

		</block>

		<block type="basic_matrix8">
			<value name="num">
				<shadow type="math_number">
					<field name="NUM">0</field>
				</shadow>
			</value>
		</block>
<!--
		<block type="basic_matrix_clear" name="点阵屏显示_清屏">

		</block>
-->

    </category>
    <category id="Special sensor" name="特殊传感器" colour="20">

<!--          rfid_iic              -->
		<block type="rc522_i2c_init">
			
		</block>

		<block type="rc522_i2c_read">
			
		</block>
    </category>

    <category id="comunicationID" name="通讯" colour="20">

<!--         wifi         -->
		<block type="wifi_init">
			<value name="TEXT1">
				<block type="text">
					<field name="TEXT1"></field>
				</block>
			</value>
			<value name="TEXT2">
				<block type="text">
					<field name="TEXT2"></field>
				</block>
			</value>
		</block>

    </category>
</category>