Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
93 lines (90 sloc) 1.8 KB
/*
Define of ID function for Scratch interface
*/
#define VERSION 0
#define ULTRASONIC_SENSOR 1
#define TEMPERATURE_SENSOR 2
#define LIGHT_SENSOR 3
#define POTENTIONMETER 4
#define JOYSTICK 5
#define GYRO 6
#define SOUND_SENSOR 7
#define RGBLED 8
#define SEVSEG 9
#define MOTOR 10
#define SERVO 11
#define ENCODER 12
#define IR 13
#define IRREMOTE 14
#define PIRMOTION 15
#define INFRARED 16
#define LINEFOLLOWER 17
#define IRREMOTECODE 18
#define SHUTTER 20
#define LIMITSWITCH 21
#define BUTTON 22
#define HUMITURE 23
#define FLAMESENSOR 24
#define GASSENSOR 25
#define COMPASS 26
#define DIGITAL 30
#define ANALOG 31
#define PWM 32
#define SERVO_PIN 33
#define TONE 34
#define PULSEIN 37
#define ULTRASONIC_ARDUINO 36
#define STEPPER 40
#define LEDMATRIX 41
#define TIMER 50
#define TOUCH_SENSOR 51
////////RUN/////////
#define SET_MOTOR 60
#define STOP_MOTOR 61
#define SET_RELAY 62
#define SET_LED 63
#define SET_SERVO 64
#define DIS_SERVO 65
#define LCD_PRINT 66
#define LCD_CLEAR 67
///////GET////////
#define BUTTONS 70
#define SWITCH 71
#define TOUCH 72
#define VIBRATION 73
#define GAS 74
#define SOUND 75
#define LIGHT 76
#define SOIL_MOISTURE 77
#define POT_LOCATION 78
#define ACCELEROMENTER 79
#define TEMPERATURE 80
#define HUMIDITY 81
#define S_PWM 82
#define SHARPDIS 83
#define LINESINGLE 84
///////////////////////
#define RCDATA 90
#define CHECKCONNECTED 91
#define DONE 92
//////////////////////////
//////////////////////////
#define IRDISTANCE 100
#define CENTERLINE 101
#define RIGHTLINE 102
#define LEFTLINE 103
#define DIGITALIN 104
////////////////////////
#define STOP 120
#define FORWARD 121
#define BACKWARD 122
#define TURNLEFT 123
#define TURNRIGHT 124
#define RGBSTRIP 125
#define PLAYTONE 126
#define DIGITALOUT 127
/////////////////////////
#define GET 1
#define RUN 2
#define RESET 4
#define START 5
You can’t perform that action at this time.