/* * Header file for ME106. * Contains a bunch of useful symbolic names that the Arduino team should * probably have provided themselves. * Also contains a bunch of useful symbolic names for the use with the SES * (Spartronics Experimenter Shield) * * Version 1.00 * Last updated: 21-Feb-2010 17:15 */ // for use with DigitalRead() and DigitalWrite() #define PIN_D0 0 #define PIN_D1 1 #define PIN_D2 2 #define PIN_D3 3 #define PIN_D4 4 #define PIN_D5 5 #define PIN_D6 6 #define PIN_D7 7 #define PIN_D8 8 #define PIN_D9 9 #define PIN_D10 10 #define PIN_D11 11 #define PIN_D12 12 #define PIN_D13 13 #define PIN_D14 14 // physically analog pin 0 #define PIN_D15 15 // analog pin 1 #define PIN_D16 16 // analog pin 2 #define PIN_D17 17 // analog pin 3 #define PIN_D18 18 // analog pin 4 #define PIN_D19 19 // analog pin 5 // for use with AnalogRead() #define PIN_A0 0 #define PIN_A1 1 #define PIN_A2 2 #define PIN_A3 3 #define PIN_A4 4 #define PIN_A5 5 /* * Spartronics Experimenter Board (v1.00) constants */ #define PIN_SES_LED0 11 /* Digital pin numbers */ #define PIN_SES_LED1 9 #define PIN_SES_LED2 6 #define PIN_SES_LED3 3 #define PIN_SES_RGB_GREEN 9 #define PIN_SES_RGB_BLUE 6 #define PIN_SES_RGB_RED 3 #define PIN_SES_BUTTON0 12 #define PIN_SES_BUTTON1 8 #define PIN_SES_BUTTON2 7 #define PIN_SES_BUTTON3 4 #define PIN_SES_SERVO 10 #define PIN_SES_SPEAKER 5 #define PIN_SES_TEMP 0 /* Analog pin numbers */ #define PIN_SES_POT 1 #define PIN_SES_PHOTOCELL 2