{
	"objName": "Stage",
	"scripts": [[159, 118, [["whenKeyPressed", "space"], ["playSound:", "dance funky"]]]],
	"sounds": [{
			"soundName": "dance head nod",
			"soundID": 7,
			"md5": "65e8a47d55df3f4cb17722959f6220db.wav",
			"sampleCount": 124519,
			"rate": 22050,
			"format": "adpcm"
		},
		{
			"soundName": "dance funky",
			"soundID": 8,
			"md5": "a8383eaddc02d33714dc5832c02ccf13.wav",
			"sampleCount": 111412,
			"rate": 22050,
			"format": "adpcm"
		}],
	"costumes": [{
			"costumeName": "stars",
			"baseLayerID": 18,
			"baseLayerMD5": "fd6f4091ae38edbac60da55e8aa83e6f.svg",
			"bitmapResolution": 1,
			"rotationCenterX": 240,
			"rotationCenterY": 180
		}],
	"currentCostumeIndex": 0,
	"penLayerMD5": "5c81a336fab8be57adc039a8a2b33ca9.png",
	"penLayerID": 0,
	"tempoBPM": 60,
	"videoAlpha": 0.5,
	"children": [{
			"objName": "Sun",
			"scripts": [[127,
					100,
					[["whenClicked"],
						["say:duration:elapsed:from:", "Soy el sol ", 2],
						["say:duration:elapsed:from:", "Estoy a  mas de 10000ºC", 2],
						["say:duration:elapsed:from:", "tengo 4.603 miles de millones de años", 5],
						["say:duration:elapsed:from:", "Estoy a 149,6 millones de km de la tierra", 5]]]],
			"sounds": [{
					"soundName": "pop",
					"soundID": 0,
					"md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav",
					"sampleCount": 258,
					"rate": 11025,
					"format": ""
				}],
			"costumes": [{
					"costumeName": "sun",
					"baseLayerID": 1,
					"baseLayerMD5": "55c931c65456822c0c56a2b30e3e550d.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 72,
					"rotationCenterY": 72
				}],
			"currentCostumeIndex": 0,
			"scratchX": -209,
			"scratchY": -139,
			"scale": 1,
			"direction": 90,
			"rotationStyle": "normal",
			"isDraggable": false,
			"indexInLibrary": 10,
			"visible": true,
			"spriteInfo": {
			}
		},
		{
			"objName": "Sprite1",
			"scripts": [[166,
					132,
					[["whenClicked"],
						["say:duration:elapsed:from:", "Soy Neptuno", 2],
						["say:duration:elapsed:from:", "Tengo 4.503 de años", 2],
						["say:duration:elapsed:from:", "Tardo 165 años en dar la vuela al sol", 5]]]],
			"sounds": [{
					"soundName": "pop",
					"soundID": 0,
					"md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav",
					"sampleCount": 258,
					"rate": 11025,
					"format": ""
				}],
			"costumes": [{
					"costumeName": "disfraz1",
					"baseLayerID": 2,
					"baseLayerMD5": "67793d7fc801316251ce6c80381bdf99.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 40,
					"rotationCenterY": 51
				}],
			"currentCostumeIndex": 0,
			"scratchX": 189.95,
			"scratchY": 130,
			"scale": 0.6,
			"direction": 90,
			"rotationStyle": "normal",
			"isDraggable": false,
			"indexInLibrary": 7,
			"visible": true,
			"spriteInfo": {
			}
		},
		{
			"objName": "Planet3",
			"scripts": [[23,
					104,
					[["whenClicked"],
						["say:duration:elapsed:from:", "Soy Urano", 2],
						["say:duration:elapsed:from:", "Tengo 4.503 mil millones", 2],
						["say:duration:elapsed:from:", "Tardo 84 años en dar la vuelta al sol", 5]]]],
			"sounds": [{
					"soundName": "pop",
					"soundID": 0,
					"md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav",
					"sampleCount": 258,
					"rate": 11025,
					"format": ""
				}],
			"costumes": [{
					"costumeName": "planet2",
					"baseLayerID": 3,
					"baseLayerMD5": "684ab729d37499a75cb318ca69948775.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 25,
					"rotationCenterY": 54
				}],
			"currentCostumeIndex": 0,
			"scratchX": 91,
			"scratchY": 125,
			"scale": 1,
			"direction": 90,
			"rotationStyle": "normal",
			"isDraggable": false,
			"indexInLibrary": 9,
			"visible": true,
			"spriteInfo": {
			}
		},
		{
			"objName": "German,_maple_Violin",
			"scripts": [[142,
					166,
					[["whenClicked"],
						["say:duration:elapsed:from:", "soy mercurio", 2],
						["say:duration:elapsed:from:", "estoy a 400ºC", 2],
						["say:duration:elapsed:from:", "4.503 mil millones de años", 2],
						["say:duration:elapsed:from:", " tardo en dar la vuelta al sol 88 dias", 5]]]],
			"sounds": [{
					"soundName": "pop",
					"soundID": 0,
					"md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav",
					"sampleCount": 258,
					"rate": 11025,
					"format": ""
				}],
			"costumes": [{
					"costumeName": "German,_maple_Violin",
					"baseLayerID": 4,
					"baseLayerMD5": "56eb89f3c4c30161707a662af04de290.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 56,
					"rotationCenterY": 61
				},
				{
					"costumeName": "disfraz1",
					"baseLayerID": 5,
					"baseLayerMD5": "3479fa5642a42e6f40dfc4e127ce99ab.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 61,
					"rotationCenterY": 53
				}],
			"currentCostumeIndex": 1,
			"scratchX": -194,
			"scratchY": -56,
			"scale": 0.5000000000000001,
			"direction": 90,
			"rotationStyle": "normal",
			"isDraggable": false,
			"indexInLibrary": 6,
			"visible": true,
			"spriteInfo": {
			}
		},
		{
			"objName": "Guitarra",
			"scripts": [[31,
					104,
					[["whenClicked"],
						["say:duration:elapsed:from:", "Soy Venus", 2],
						["say:duration:elapsed:from:", "Tengo 4.503 mil millones de años", 2],
						["say:duration:elapsed:from:", "Tardo 225 dias en dar la vuelta al sol", 2]]]],
			"sounds": [{
					"soundName": "pop",
					"soundID": 0,
					"md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav",
					"sampleCount": 258,
					"rate": 11025,
					"format": ""
				},
				{
					"soundName": "Canción a guitarra española más bella del mundo - TORERO.mp3",
					"soundID": 1,
					"md5": "efc6dee648611dc37e9d05763f633fa9.wav",
					"sampleCount": 522240,
					"rate": 22050,
					"format": ""
				}],
			"costumes": [{
					"costumeName": "GA0693_-_GUITARRA_CLASICA_-_CORT_-1_copia_1024x1024@2x",
					"baseLayerID": 6,
					"baseLayerMD5": "7eb16751b96e5633bc31706d8c35bcae.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 59,
					"rotationCenterY": 72
				},
				{
					"costumeName": "disfraz1",
					"baseLayerID": 7,
					"baseLayerMD5": "fa8b2f9785ef1d2efae5dd6682e3a107.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 58,
					"rotationCenterY": 23
				}],
			"currentCostumeIndex": 1,
			"scratchX": -54,
			"scratchY": -130,
			"scale": 0.6,
			"direction": 90,
			"rotationStyle": "normal",
			"isDraggable": false,
			"indexInLibrary": 3,
			"visible": true,
			"spriteInfo": {
			}
		},
		{
			"objName": "Drum",
			"scripts": [[94,
					171,
					[["whenClicked"],
						["say:duration:elapsed:from:", "Soy la tierra", 2],
						["say:duration:elapsed:from:", "Tengo 4.543 mil millones de años", 2],
						["say:duration:elapsed:from:", "tardo 365 y 6h en dar la vuelta al sol", 2]]],
				[266, 467, [["whenSceneStarts", "stars"]]]],
			"sounds": [{
					"soundName": "pop",
					"soundID": 0,
					"md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav",
					"sampleCount": 258,
					"rate": 11025,
					"format": ""
				},
				{
					"soundName": "cymbal crash",
					"soundID": 2,
					"md5": "fa2c9da1d4fd70207ab749851853cb50.wav",
					"sampleCount": 25219,
					"rate": 22050,
					"format": ""
				},
				{
					"soundName": "cymbal",
					"soundID": 3,
					"md5": "7c5405a9cf561f65a941aff10e661593.wav",
					"sampleCount": 24118,
					"rate": 22050,
					"format": "adpcm"
				}],
			"costumes": [{
					"costumeName": "earth",
					"baseLayerID": 8,
					"baseLayerMD5": "814197522984a302972998b1a7f92d91.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 72,
					"rotationCenterY": 72
				}],
			"currentCostumeIndex": 0,
			"scratchX": -133,
			"scratchY": 47,
			"scale": 0.7999999999999998,
			"direction": 90,
			"rotationStyle": "normal",
			"isDraggable": false,
			"indexInLibrary": 5,
			"visible": true,
			"spriteInfo": {
			}
		},
		{
			"objName": "Clarinete",
			"scripts": [[54,
					49,
					[["whenClicked"],
						["say:duration:elapsed:from:", "Soy marte", 2],
						["say:duration:elapsed:from:", "Tambien llamado planeta rojo", 2],
						["say:duration:elapsed:from:", "tengo 4.603 mil millones de años", 5],
						["say:duration:elapsed:from:", "tarda 730 dias en dar una vuelta al sol", 5]]]],
			"sounds": [{
					"soundName": "pop",
					"soundID": 0,
					"md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav",
					"sampleCount": 258,
					"rate": 11025,
					"format": ""
				},
				{
					"soundName": "La Cucaracha tocada con Clarinete",
					"soundID": 4,
					"md5": "843978f62372511481c84d11a6c9e521.wav",
					"sampleCount": 353280,
					"rate": 22050,
					"format": ""
				}],
			"costumes": [{
					"costumeName": "images",
					"baseLayerID": 9,
					"baseLayerMD5": "7995643e23e9aa68f09285a259f93d9c.png",
					"bitmapResolution": 2,
					"rotationCenterX": 63,
					"rotationCenterY": 224
				},
				{
					"costumeName": "disfraz1",
					"baseLayerID": 10,
					"baseLayerMD5": "61f37bb0b0f49ebfd6c868c4b6abc5a7.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 80,
					"rotationCenterY": 59
				}],
			"currentCostumeIndex": 1,
			"scratchX": 25.94999999999999,
			"scratchY": -29,
			"scale": 0.65,
			"direction": 90,
			"rotationStyle": "normal",
			"isDraggable": false,
			"indexInLibrary": 4,
			"visible": true,
			"spriteInfo": {
			}
		},
		{
			"objName": "Planet2",
			"scripts": [[133,
					110,
					[["whenClicked"],
						["say:duration:elapsed:from:", "Soy saturno", 2],
						["say:duration:elapsed:from:", "Tengo 4.503 mil millones de años", 2],
						["say:duration:elapsed:from:", "Tardo 29 años en dar la vuelta al sol", 5]]]],
			"sounds": [{
					"soundName": "pop",
					"soundID": 0,
					"md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav",
					"sampleCount": 258,
					"rate": 11025,
					"format": ""
				}],
			"costumes": [{
					"costumeName": "planet2",
					"baseLayerID": 11,
					"baseLayerMD5": "0d844b2f4acb3c08c614c259ca24d8a3.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 52,
					"rotationCenterY": 26
				}],
			"currentCostumeIndex": 0,
			"scratchX": 126,
			"scratchY": 11,
			"scale": 1,
			"direction": 90,
			"rotationStyle": "normal",
			"isDraggable": false,
			"indexInLibrary": 8,
			"visible": true,
			"spriteInfo": {
			}
		},
		{
			"objName": "Radio",
			"scripts": [[84,
					118,
					[["whenClicked"],
						["say:duration:elapsed:from:", "Soy Júpiter", 2],
						["say:duration:elapsed:from:", "Tengo 4.503 mil millones de años", 2],
						["say:duration:elapsed:from:", "Tardo 12 años en dar la vuelta al sol", 5]]]],
			"sounds": [{
					"soundName": "pop",
					"soundID": 0,
					"md5": "83a9787d4cb6f3b7632b4ddfebf74367.wav",
					"sampleCount": 258,
					"rate": 11025,
					"format": ""
				},
				{
					"soundName": "Marcha turca de Mozart",
					"soundID": 5,
					"md5": "b98a585f1662b03a358b0d723aac0b9a.wav",
					"sampleCount": 362496,
					"rate": 22050,
					"format": ""
				}],
			"costumes": [{
					"costumeName": "disfraz1",
					"baseLayerID": 12,
					"baseLayerMD5": "4cb797b8796fd164af8351607d97a82c.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 53,
					"rotationCenterY": 62
				}],
			"currentCostumeIndex": 0,
			"scratchX": -56,
			"scratchY": 132,
			"scale": 0.7,
			"direction": 90,
			"rotationStyle": "normal",
			"isDraggable": false,
			"indexInLibrary": 1,
			"visible": true,
			"spriteInfo": {
			}
		},
		{
			"objName": "Tera",
			"scripts": [[35,
					88,
					[["whenGreenFlag"],
						["say:duration:elapsed:from:", "Hello!", 2],
						["say:duration:elapsed:from:", "Soy Terra", 2],
						["say:duration:elapsed:from:", "Os voy enseñar los planetas", 2],
						["think:duration:elapsed:from:", "Clica cada uno de los planetas o el sol para ver información", 5],
						["think:duration:elapsed:from:", "Cuando acabes clica espacio", 2]]]],
			"costumes": [{
					"costumeName": "tera-a",
					"baseLayerID": 13,
					"baseLayerMD5": "7c807cbb9ac3f075b3a3c62857cfd94d.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 44,
					"rotationCenterY": 70
				},
				{
					"costumeName": "tera-b",
					"baseLayerID": 14,
					"baseLayerMD5": "43a40a7ecdb2ef6e12bcf7886dd02b4a.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 49,
					"rotationCenterY": 64
				},
				{
					"costumeName": "tera-c",
					"baseLayerID": 15,
					"baseLayerMD5": "b11ecf19f24bfadcacdb1c42e94320a2.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 43,
					"rotationCenterY": 64
				},
				{
					"costumeName": "tera-d",
					"baseLayerID": 16,
					"baseLayerMD5": "b09532e2bf8428b126dd0996e7267584.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 49,
					"rotationCenterY": 63
				}],
			"currentCostumeIndex": 0,
			"scratchX": 180,
			"scratchY": -77,
			"scale": 0.85,
			"direction": 90,
			"rotationStyle": "normal",
			"isDraggable": false,
			"indexInLibrary": 11,
			"visible": true,
			"spriteInfo": {
			}
		},
		{
			"objName": "Boy",
			"sounds": [{
					"soundName": "guitar chords1",
					"soundID": 6,
					"md5": "2b1a5bc63580d8625cf24ff3d7622c0b.wav",
					"sampleCount": 123264,
					"rate": 22050,
					"format": "adpcm"
				}],
			"costumes": [{
					"costumeName": "spaceship-a",
					"baseLayerID": 17,
					"baseLayerMD5": "b29c96e6983fd334d016212ee29a6d62.svg",
					"bitmapResolution": 1,
					"rotationCenterX": 98,
					"rotationCenterY": 66
				}],
			"currentCostumeIndex": 0,
			"scratchX": 184,
			"scratchY": -130,
			"scale": 0.6000000000000001,
			"direction": 90,
			"rotationStyle": "normal",
			"isDraggable": false,
			"indexInLibrary": 2,
			"visible": true,
			"spriteInfo": {
			}
		}],
	"info": {
		"videoOn": false,
		"savedExtensions": [{
				"blockSpecs": [["h",
						"mBot Program",
						"runArduino",
						{
							"src": "mbot",
							"loop": "",
							"def": "",
							"inc": "#include <MeMCore.h>\n",
							"setup": ""
						}],
					["-"],
					["w",
						"%m.direction at speed %d.motorvalue",
						"runBot",
						"run forward",
						0,
						{
							"work": "move({0},{1});\n",
							"def": "",
							"setup": "",
							"encode": "{d0}{s1}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"set motor%d.motorPort speed %d.motorvalue",
						"runMotor",
						"M1",
						0,
						{
							"work": "motor_{0}.run(({0})==M1?-({1}):({1}));\n",
							"def": "",
							"setup": "",
							"encode": "{d0}{s1}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"set servo %d.servoPort %d.slot angle %d.servovalue",
						"runServo",
						"Port1",
						"Slot1",
						90,
						{
							"work": "servo_{0}_{1}.write({2});\n",
							"def": "Servo servo_{0}_{1};\nMePort port_{0}({0});\n",
							"setup": "servo_{0}_{1}.attach(port_{0}.pin{1}());\n",
							"encode": "{d0}{d1}{d2}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"set led on board %d.index red%d.value green%d.value blue%d.value",
						"runLedOnBoard",
						"all",
						0,
						0,
						0,
						{
							"work": "rgbled_7.setColor({0},{1},{2},{3});\nrgbled_7.show();\n",
							"def": "MeRGBLed rgbled_7(7, 7==7?2:4);\n",
							"setup": "",
							"encode": "{d0}{d1}{d2}{d3}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"set led %d.yellowPorts %d.index0 red%d.value green%d.value blue%d.value",
						"runLedExternal",
						"Port1",
						"all",
						0,
						0,
						0,
						{
							"work": "rgbled_{0}.setColor({1},{2},{3},{4});\nrgbled_{0}.show();\n",
							"def": "MeRGBLed rgbled_{0}({0}, {0}==7?2:4);\n",
							"setup": "",
							"encode": "{d0}{d1}{d2}{d3}{d4}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"set led strip %d.normalPort %d.slot %d.index2 red%d.value green%d.value blue%d.value",
						"runLedStrip",
						"Port1",
						"Slot2",
						"all",
						0,
						0,
						0,
						{
							"work": "rgbled_{0}_{1}.setColor({2},{3},{4},{5});\nrgbled_{0}_{1}.show();\n",
							"def": "MeRGBLed rgbled_{0}_{1}({0}, {1}, 32);\n",
							"setup": "",
							"encode": "{d0}{d1}{d2}{d3}{d4}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"play tone on note %d.note beat %d.beats",
						"runBuzzer",
						"C4",
						"Half",
						{
							"work": "buzzer.tone({0}, {1});\ndelay(20);\n",
							"def": "MeBuzzer buzzer;\n",
							"setup": "",
							"encode": "{s0}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"show face %d.normalPort number:%n",
						"showNumber",
						"Port1",
						0,
						{
							"work": "ledMtx_{0}.showNum({1},3);\n",
							"def": "MeLEDMatrix ledMtx_{0}({0});\n",
							"setup": "ledMtx_{0}.setColorIndex(1);\nledMtx_{0}.setBrightness(6);\n",
							"encode": "{s0}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"show face %d.normalPort x:%n y:%n characters:%s",
						"showCharacters",
						"Port1",
						0,
						0,
						"Hi",
						{
							"work": "ledMtx_{0}.drawStr({1},{2}+7,{3});\n",
							"def": "MeLEDMatrix ledMtx_{0}({0});\n",
							"setup": "ledMtx_{0}.setColorIndex(1);\nledMtx_{0}.setBrightness(6);\n",
							"encode": "{s0}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"show time %d.normalPort hour:%n %m.points min:%n",
						"showTime",
						"Port1",
						10,
						":",
						20,
						{
							"work": "ledMtx_{0}.showClock({1},{3},strcmp({2},\":\")==0);\n",
							"def": "MeLEDMatrix ledMtx_{0}({0});\n",
							"setup": "ledMtx_{0}.setColorIndex(1);\nledMtx_{0}.setBrightness(6);\n",
							"encode": "{s0}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"show drawing %d.normalPort x:%n y:%n draw:%m.drawFace",
						"showDraw",
						"Port1",
						0,
						0,
						"        ",
						{
							"work": "drawTemp = new unsigned char[16]{{3}};\nmemcpy(drawBuffer,drawTemp,16);\nfree(drawTemp);\nledMtx_{0}.drawBitmap({1},{2},16,drawBuffer);\n",
							"def": "MeLEDMatrix ledMtx_{0}({0});\nunsigned char drawBuffer[16];\nunsigned char *drawTemp;\n",
							"setup": "ledMtx_{0}.setColorIndex(1);\nledMtx_{0}.setBrightness(6);\n",
							"encode": "{s0}",
							"inc": "",
							"loop": ""
						}],
					["-"],
					["w",
						"set 7-segments display%d.bluePorts number %n",
						"runSevseg",
						"Port1",
						100,
						{
							"work": "seg7_{0}.display((float){1});\n",
							"def": "Me7SegmentDisplay seg7_{0}({0});\n",
							"setup": "",
							"encode": "{d0}{f1}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"set light sensor %d.blackPorts led as %d.switch",
						"runLightSensor",
						"Port3",
						"On",
						{
							"work": "lightsensor_{0}.dWrite1({1});\n",
							"def": "MeLightSensor lightsensor_{0}({0});\n",
							"setup": "",
							"encode": "{d0}{d1}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"set camera shutter %d.bluePorts as %d.shutter",
						"runShutter",
						"Port1",
						"Press",
						{
							"work": "shutter_{0}.setState({1});\n",
							"def": "MeShutter shutter_{0}({0});\n",
							"setup": "",
							"encode": "{d0}{d1}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"set mini fan %d.fanPorts blow %d.fan",
						"runFan",
						"Port1",
						"clockwise",
						{
							"work": "dc130_run(dc130_{0},{1});\n",
							"def": "MePort dc130_{0}({0});\n--separator--void dc130_run( MePort dc130, int8_t direction) \n{\n  pinMode(dc130.pin1(),OUTPUT);\n  pinMode(dc130.pin2(),OUTPUT);\n  if( direction > 0)\n  {\n    digitalWrite(dc130.pin2(),0);\n    digitalWrite(dc130.pin1(),1);\n  }\n  else if( direction < 0)\n  {\n    digitalWrite(dc130.pin1(),0);\n    digitalWrite(dc130.pin2(),1);\n  }\n  else\n  {\n    digitalWrite(dc130.pin1(),0);\n    digitalWrite(dc130.pin2(),0);\n  }\n}\n",
							"setup": "",
							"encode": "{d0}{d1}",
							"inc": "",
							"loop": ""
						}],
					["-"],
					["R",
						"light sensor %d.laport",
						"getLightSensor",
						"light sensor on board",
						{
							"work": "lightsensor_{0}.read()",
							"def": "MeLightSensor lightsensor_{0}({0});\n",
							"setup": "",
							"encode": "{d0}",
							"inc": "",
							"loop": ""
						}],
					["h", "when on board button %m.button_state", "whenButtonPressed", "pressed"],
					["B",
						"on board button %m.button_state",
						"getButtonOnBoard",
						"pressed",
						{
							"work": "({0}^(analogRead(A7)>10?0:1))",
							"def": "",
							"setup": "pinMode(A7,INPUT);\n",
							"encode": "{n7}{d0}",
							"inc": "",
							"loop": ""
						}],
					["-"],
					["R",
						"ultrasonic sensor %d.whitePorts distance",
						"getUltrasonic",
						"Port3",
						{
							"work": "ultrasonic_{0}.distanceCm()",
							"def": "MeUltrasonicSensor ultrasonic_{0}({0});\n",
							"setup": "",
							"encode": "{d0}",
							"inc": "",
							"loop": ""
						}],
					["R",
						"line follower %d.bluePorts",
						"getLinefollower",
						"Port2",
						{
							"work": "linefollower_{0}.readSensors()",
							"def": "MeLineFollower linefollower_{0}({0});\n",
							"setup": "",
							"encode": "{d0}",
							"inc": "",
							"loop": ""
						}],
					["B",
						"line follower %d.bluePorts %d.leftRight is %d.whiteBlack",
						"getLinefollowerStatus",
						"Port2",
						"leftSide",
						"black",
						{
							"work": "(true&&({2}?(linefollower_{0}.readSensors()&{1}):!(linefollower_{0}.readSensors()&{1})))",
							"def": "MeLineFollower linefollower_{0}({0});\n",
							"setup": "",
							"encode": "{d0}{d1}{d2}",
							"inc": "",
							"loop": ""
						}],
					["R",
						"joystick %d.blackPorts %d.Axis",
						"getJoystick",
						"Port3",
						"X-Axis",
						{
							"work": "joystick_{0}.read({1})",
							"def": "MeJoystick joystick_{0}({0});\n",
							"setup": "",
							"encode": "{d0}{d1}",
							"inc": "",
							"loop": ""
						}],
					["R",
						"potentiometer %d.blackPorts",
						"getPotentiometer",
						"Port3",
						{
							"work": "potentiometer_{0}.read()",
							"def": "MePotentiometer potentiometer_{0}({0});\n",
							"setup": "",
							"encode": "{d0}",
							"inc": "",
							"loop": ""
						}],
					["R",
						"sound sensor %d.soundPort",
						"getSoundSensor",
						"Port3",
						{
							"work": "soundsensor_{0}.strength()",
							"def": "MeSoundSensor soundsensor_{0}({0});\n",
							"setup": "",
							"encode": "{d0}",
							"inc": "",
							"loop": ""
						}],
					["B",
						"limit switch %d.normalPort %d.slot",
						"getLimitswitch",
						"Port1",
						"Slot1",
						{
							"work": "sw_{0}_{1}.touched()",
							"def": "MeLimitSwitch sw_{0}_{1}({0},{1});\n",
							"setup": "",
							"encode": "{d0}{d1}",
							"inc": "",
							"loop": ""
						}],
					["R",
						"temperature %d.normalPort%d.slot °C",
						"getTemperature",
						"Port3",
						"Slot1",
						{
							"work": "temperature_{0}_{1}.temperature()",
							"def": "MeTemperature temperature_{0}_{1}({0},{1});\n",
							"setup": "",
							"encode": "{d0}{d1}",
							"inc": "",
							"loop": ""
						}],
					["B",
						"pir motion sensor %d.bluePorts",
						"getPirmotion",
						"Port2",
						{
							"work": "pir_{0}.isHumanDetected()",
							"def": "MePIRMotionSensor pir_{0}({0});\n",
							"setup": "",
							"encode": "{d0}",
							"inc": "",
							"loop": ""
						}],
					["R",
						"3-axis gyro %d.GyroAxis angle",
						"getGyro",
						"X-Axis",
						{
							"work": "gyro.getAngle({0})",
							"def": "MeGyro gyro;\n",
							"setup": "gyro.begin();\n",
							"encode": "{d0}",
							"inc": "",
							"loop": "gyro.update();\n"
						}],
					["R",
						"humiture sensor %d.normalPort %d.humiture",
						"getHumiture",
						"Port1",
						"humidity",
						{
							"work": "humiture_{0}.getValue({1})",
							"def": "MeHumiture humiture_{0}({0});\n",
							"setup": "",
							"encode": "",
							"inc": "",
							"loop": "humiture_{0}.update();\n"
						}],
					["R",
						"flame sensor %d.blackPorts",
						"getFlame",
						"Port3",
						{
							"work": "flameSensor_{0}.readAnalog()",
							"def": "MeFlameSensor flameSensor_{0}({0});\n",
							"setup": "",
							"encode": "",
							"inc": "",
							"loop": ""
						}],
					["R",
						"gas sensor %d.blackPorts",
						"getGas",
						"Port3",
						{
							"work": "gasSensor_{0}.readAnalog()",
							"def": "MeGasSensor gasSensor_{0}({0});\n",
							"setup": "",
							"encode": "",
							"inc": "",
							"loop": ""
						}],
					["R",
						"compass sensor %d.whitePorts",
						"gatCompass",
						"Port1",
						{
							"work": "compass_{0}.getAngle()",
							"def": "MeCompass compass_{0}({0});\n",
							"setup": "compass_{0}.begin();\n",
							"encode": "",
							"inc": "",
							"loop": ""
						}],
					["B",
						"touch sensor %d.bluePorts",
						"getTouchSensor",
						"Port1",
						{
							"work": "touchSensor_{0}.touched()",
							"def": "MeTouchSensor touchSensor_{0}({0});\n",
							"setup": "",
							"encode": "{d0}",
							"inc": "",
							"loop": ""
						}],
					["B",
						"button %d.blackPorts %m.button_key pressed",
						"getButton",
						"Port3",
						"key1",
						{
							"work": "(buttonSensor_{0}.pressed()=={1})",
							"def": "Me4Button buttonSensor_{0}({0});\n",
							"setup": "",
							"encode": "{d0}",
							"inc": "",
							"loop": "buttonSensor_{0}.pressed();"
						}],
					["-"],
					["B",
						"ir remote %m.ircode pressed",
						"getIrRemote",
						"A",
						{
							"work": "ir.keyPressed({0})",
							"def": "MeIR ir;\n",
							"setup": "ir.begin();\n",
							"encode": "{n0}{d0}",
							"inc": "",
							"loop": "ir.loop();\n"
						}],
					["-"],
					["w",
						"send mBot's message %s",
						"runIR",
						"hello",
						{
							"work": "ir.sendString({0});\n",
							"def": "MeIR ir;\n",
							"setup": "ir.begin();\n",
							"encode": "{m0}",
							"inc": "",
							"loop": ""
						}],
					["R",
						"mBot's message received",
						"getIR",
						{
							"work": "ir.getString()",
							"def": "MeIR ir;\n",
							"setup": "ir.begin();\n",
							"encode": "{n0}",
							"inc": "",
							"loop": ""
						}],
					["-"],
					["R",
						"timer",
						"getTimer",
						"0",
						{
							"work": "getLastTime()",
							"def": "double currentTime = 0;\ndouble lastTime = 0;\n--separator--double getLastTime(){\n\treturn currentTime = millis()\/1000.0 - lastTime;\n}\n",
							"setup": "",
							"encode": "{n0}",
							"inc": "",
							"loop": ""
						}],
					["w",
						"reset timer",
						"resetTimer",
						"0",
						{
							"work": "lastTime = millis()\/1000.0;\n",
							"def": "double currentTime = 0;\ndouble lastTime = 0;\n",
							"setup": "",
							"encode": "{n0}",
							"inc": "",
							"loop": ""
						}]],
				"extensionName": "mBot",
				"menus": {
					"lport": ["led on board"],
					"servoPort": ["Port1", "Port2", "Port3", "Port4"],
					"yellowPorts": ["Port1", "Port2", "Port3", "Port4"],
					"grayPorts": [],
					"ircode": ["A",
						"B",
						"C",
						"D",
						"E",
						"F",
						"↑",
						"↓",
						"←",
						"→",
						"Setting",
						"R0",
						"R1",
						"R2",
						"R3",
						"R4",
						"R5",
						"R6",
						"R7",
						"R8",
						"R9"],
					"slot": ["Slot1", "Slot2"],
					"motorvalue": [255, 100, 50, 0, -50, -100, -255],
					"shutter": ["Press", "Release", "Focus On", "Focus Off"],
					"port": ["Port1", "Port2", "Port3", "Port4"],
					"button_state": ["pressed", "released"],
					"Axis": ["X-Axis", "Y-Axis"],
					"GyroAxis": ["X-Axis", "Y-Axis", "Z-Axis"],
					"touch_mode": ["direct", "toggle"],
					"whitePorts": ["Port1", "Port2", "Port3", "Port4"],
					"switch": ["Off", "On"],
					"servovalue": [0, 45, 90, 135, 180],
					"whiteBlack": ["black", "white"],
					"humiture": ["humidity", "temperature"],
					"button_key": ["key1", "key2", "key3", "key4"],
					"laport": ["light sensor on board", "Port3", "Port4"],
					"motorPort": ["M1", "M2"],
					"normalPort": ["Port1", "Port2", "Port3", "Port4"],
					"index": ["all", "led left", "led right"],
					"leftRight": ["leftSide", "rightSide"],
					"index2": ["all", 1, 15, 30],
					"soundPort": ["Port3", "Port4"],
					"index0": ["all", 1, 2, 3, 4],
					"blackPorts": ["Port3", "Port4"],
					"points": [":", ""],
					"fan": ["clockwise", "counter-clockwise", "stop"],
					"value": [0, 20, 60, 150, 255],
					"fanPorts": ["Port1", "Port2", "Port3", "Port4"],
					"note": ["C2",
						"D2",
						"E2",
						"F2",
						"G2",
						"A2",
						"B2",
						"C3",
						"D3",
						"E3",
						"F3",
						"G3",
						"A3",
						"B3",
						"C4",
						"D4",
						"E4",
						"F4",
						"G4",
						"A4",
						"B4",
						"C5",
						"D5",
						"E5",
						"F5",
						"G5",
						"A5",
						"B5",
						"C6",
						"D6",
						"E6",
						"F6",
						"G6",
						"A6",
						"B6",
						"C7",
						"D7",
						"E7",
						"F7",
						"G7",
						"A7",
						"B7",
						"C8",
						"D8"],
					"bluePorts": ["Port1", "Port2", "Port3", "Port4"],
					"direction": ["run forward", "run backward", "turn right", "turn left"],
					"beats": ["Half", "Quarter", "Eighth", "Whole", "Double"]
				},
				"javascriptURL": "js\/mbot.js"
			}],
		"boardVersion": "mbot_uno",
		"flashVersion": "LNX 23,0,0,207",
		"spriteCount": 11,
		"swfVersion": "v3.2.2",
		"scriptCount": 12
	}
}