{ "extensionName": "IQCar",
  "extensionPort": 0,
  "sort":0,
  "firmware":"0.0.1",
	"javascriptURL":"js/iqcar.js",
	"blockSpecs": [
	  ["h", "Mini-Q Program", "runIQCar", {"setup":"", "inc":"#include <MeMCore.h>\n","def":"","work":"","loop":""}],
	  ["-"],
	  ["B", "get touch %m.touchtype", "getTouch", "PL", {"setup":"", "inc":"","def":"","work":"GetTouchID({0}-1)","loop":""}],
	  ["R", "get lightSensor %m.lighttype", "getLightSensor", "PL", {"setup":"LightSensorOn();\n", "inc":"","def":"","work":"LightSensorRead({0}-1)","loop":""}],
	  ["B", "get IRBarrier %m.IRBarriertype", "getIRBarrier", "PF", {"setup":"", "inc":"","def":"","work":"IRBarrierValue({0}-1)","loop":""}],
	  ["R", "get motor code %m.motertype", "getMoterCode", "ML", {"setup":"", "inc":"","def":"","work":"DC_GetMotorCode({0}-1)","loop":""}],
	  ["R", "get sound", "getSound", {"setup":"", "inc":"","def":"","work":"GetSoundStrength()","loop":""}],
	  ["R", "get timer", "getTimer", {"setup":"", "inc":"","def":"","work":"GetTimer()","loop":""}],
	  ["w", "set timer", "setTimer", {"setup":"", "inc":"","def":"","work":"SetTimer();\n","loop":""}],
	  ["w", "wait %n secs","WaitSecs", "1", {"setup":"", "inc":"","def":"","work":"delay({0}*1000);\n","loop":""}],
	  ["w", "set beep %m.beepswitch", "setBeepSwitch", "OFF", {"setup":"", "inc":"","def":"#define Tone_Set_0 Tone_SetOff\n#define Tone_Set_1 Tone_SetOn\n","work":"Tone_Set_{0}();\n","loop":""}],
	  ["w", "set beep %n msecs", "setBeepMSecs","1", {"setup":"", "inc":"","def":"","work":"Tone_Play({0});\n","loop":""}],
	  ["w", "set 3CLED %m.ledtype color %m.colortype", "setLED", "PL", "RED", {"setup":"", "inc":"","def":"","work":"RGBLed_Set({0}-1, {1});\n","loop":""}],
	  ["w", "set motor code %m.motertype1", "setMoterCode", "ML", {"setup":"", "inc":"","def":"","work":"DC_SetMotorCode({0}-1);\n","loop":""}],
	  ["w", "set motor %m.motertype2 speed %n", "setMoter", "ML", "50", {"setup":"", "inc":"","def":"","work":"DC_Run({0}-1, {1});\n","loop":""}],
	  ["w", "set turn left speed %n angle %n", "setTurnLeft","50", "90", {"setup":"", "inc":"","def":"","work":"DC_TurnWithAngle(0, {0}, {1});\n","loop":""}],
	  ["w", "set turn right speed %n angle %n", "setTurnRight","50", "90", {"setup":"", "inc":"","def":"","work":"DC_TurnWithAngle(1, {0}, {1});\n","loop":""}],
	  ["w", "set move forward speed %n rotary angle %n", "setMoveForward","50", "360",  {"setup":"", "inc":"","def":"","work":"DC_RunWithAngle(0, {0}, {1});\n","loop":""}],
	  ["w", "set move back speed %n rotary angle %n", "setMoveBack","50", "360", {"setup":"", "inc":"","def":"","work":"DC_RunWithAngle(0, -({0}), {1});\n","loop":""}],
	  ["w", "set reset", "setReset", {"setup":"", "inc":"","def":"","work":"DC_Run(0, 0);\nDC_Run(1, 0);\nRGBLed_Set(0, 0);\nRGBLed_Set(1, 0);\nTone_SetOff();\nLightSensorOff();\nwhile(1){delay(1000);}\n","loop":""}]
	],
	"menus":{
	  "touchtype":["PL","PR"],
	  "lighttype":["PL","PR"],
	  "IRBarriertype":["PF","PB"],
	  "motertype":["ML","MR"],
	  "motertype1":["ML","MR"],
    "motertype2":["ML","MR"],
	  "beepswitch":["OFF","ON"],
	  "ledtype":["PL", "PR"],
	  "colortype":["OFF","RED","GREEN","BLUE","YELLOW","PURPLE","CYAN","WHITE"],
	},
	"values":{
	  "PL":1,"PR":2,
	  "PF":1,"PB":2,
	  "ML":1,"MR":2,
	  "OFF":0,"ON":1,
	  "RED":1,"GREEN":2,"BLUE":3,"YELLOW":4,"PURPLE":5,"CYAN":6,"WHITE":7
	},
}