Victoria Gough
/
TrackingTempRead_test
Testing code for just temperature test
Diff: PINNAMES_mbed.h
- Revision:
- 0:584ea5db2696
diff -r 000000000000 -r 584ea5db2696 PINNAMES_mbed.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PINNAMES_mbed.h Mon Sep 04 10:15:45 2017 +0000 @@ -0,0 +1,28 @@ +#include "mbed.h" + +// SPI pins +#define MOSI p5 +#define MISO p6 +#define SCK p7 + +SPI spi(p5, p6, p7); // mosi, miso, sclk +DigitalOut chipSelect(p8); + +// CAN pins +// FILL THIS IN. + +//CAN can(CANrd, CANtd); + +// LDRs +AnalogIn LDR_SENSE1(p17); +AnalogIn LDR_SENSE2(p18); + +// Switches +DigitalIn TRACKING_SW(p21); +DigitalIn CANOPY_SW(p22); // Switch somewhere on array lifting mechanism. HIGH = +DigitalIn MODE_SW1(p23); +DigitalIn MODE_SW2(p24); +AnalogIn MANUAL_POSITION(p20); + +// Other +DigitalOut StatusLED(LED1); \ No newline at end of file