// Bambino
// TAB FILE > pins20.h

#ifdef BambinoPM
//== PINS ===================================================
//pin0 Rx
//pin1 Tx
//pin2 
const byte IRoutpin         =3;     //PWM - IR comms out
const byte redLEDpin        =4;     //D   - red LED, HIGH=on
const byte voicePin         =4;     //D   - Speaker
const byte pingPin          =5;     //PWM - HC-SR04 trigger and receive pin     
const byte servoRollPin     =6;     //PWM - Roll servo
const byte servoPacePin     =7;     //D   - Pace servo
const byte RbeardLEDpin_    =8;     //D   - Right BeardLED, LOW=on
const byte LbeardLEDpin_    =9;     //PWM - Left BeardLED, LOW=on
const byte LwhiskerLEDpin_  =10;    //PWM - Left whiskerLED, LOW=on
const byte RwhiskerLEDpin_  =11;    //PWM - Right whiskerLED, LOW=on
const byte IRinpin_         =12;    //D   - IR comms in
const byte LEDpin           =13;    //D   - 
const byte LwhiskerSensePin =A0;    //A   - Left whisker photo-transistor
const byte LbeardSensePin   =A1;    //A   - Left Beard photo-transistor
const byte RbeardSensePin   =A2;    //A   - Right Beard photo-transistor
const byte RwhiskerSensePin =A3;    //A   - Right whisker photo-transistor
//A4 - on non standard centres
//A5 - on non standard centres
//A6 - on non standard centres
//A7 - on non standard centres
//===========================================================
#endif

#ifdef BambinoM2
//M2 pcb RevC
//== PINS ===================================================
//pwm Analog write Arduino boards with the ATmega328), works on pins 3, 5, 6, 9, 10, and 11

//pin0 Tx
//pin1 Rx
const byte RbeardLEDpin_    =2;    //D   - Right BeardLED, LOW=on   PWM
const byte servoPacePin     =3;    //PWM - Pace servo
//4     //D   -
const byte IRoutpin         =5;    //PWM - IR comms out
const byte pingPin          =6;    //PWM - HC-SR04 trigger and receive pin     
const byte voicePin         =7;    //D   - Speaker & redLED - D7,D13 wi'ord to redLED
//const byte voiceLEDpin      =7;    //D   -
const byte IRinpin_         =8;    //D   - IR comms in
const byte RwhiskerLEDpin_  =9;    //PWM - Right whiskerLED, LOW=on
const byte servoRollPin     =10;   //PWM - Roll servo
const byte LwhiskerLEDpin_  =11;   //PWM - Left whiskerLED, LOW=on
const byte LbeardLEDpin_    =12;   //D   - Left BeardLED, LOW=on
const byte redLEDpin        =13;   //D   - red LED, HIGH=on
const byte LwhiskerSensePin =A3;   //A   - Left whisker photo-transistor
const byte LbeardSensePin   =A2;   //A   - Left Beard photo-transistor
const byte RbeardSensePin   =A1;   //A   - Right Beard photo-transistor
const byte RwhiskerSensePin =A0;   //A   - Right whisker photo-transistor
const byte IIC_SCL          =A5; 
const byte IIC_SDA          =A4;
//===========================================================
#endif

#ifdef BambinoMM
//== PINS ===================================================
//pin0 Tx
//pin1 Rx
const byte IRinpin_       =2;     //D   - IR comms in
const byte redLEDpin_     =3;     //PWM - LOW=on
//4     //D   - 
const byte pingPin        =5;     //PWM - HC-SR04 trigger and receive pin    
//6     //PWM - 
//7     //D   - 
const byte RbeardLEDpin_  =8;     //D   - Right beardLED on pin 8, LOW=on
const byte voicePin       =9;     //PWM - Speaker on pin 9
const byte servoRollPin   =10;    //PWM - Roll servo on pin 10   
//11     //PWM - 
//12     //D   - 
//13     //D   - 
//A0     //A   - 
const byte RbeardSensePin =A1;    //A   - photo-transistor
const byte LbeardSensePin =A2;    //A   - photo-transistor
const byte servoPacePin   =A3;    //A   - Pace servo
const byte LbeardLEDpin_  =A5;    //A   - LOW=on
//Dummies - whiskers not fitted on BambinoMM
const byte RwhiskerLEDpin_  =8;    //A - LOW=on
const byte RwhiskerSensePin =A1;   //A - photo-transistor
const byte LwhiskerLEDpin_  =A5;   //A - LOW=on
const byte LwhiskerSensePin =A2;   //A - transistor      
//===========================================================
#endif
