Victoria Gough
/
TrackingTempRead_test
Testing code for just temperature test
PINNAMES_mbed.h@0:584ea5db2696, 2017-09-04 (annotated)
- Committer:
- vickygough
- Date:
- Mon Sep 04 10:15:45 2017 +0000
- Revision:
- 0:584ea5db2696
initial tempread test;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vickygough | 0:584ea5db2696 | 1 | #include "mbed.h" |
vickygough | 0:584ea5db2696 | 2 | |
vickygough | 0:584ea5db2696 | 3 | // SPI pins |
vickygough | 0:584ea5db2696 | 4 | #define MOSI p5 |
vickygough | 0:584ea5db2696 | 5 | #define MISO p6 |
vickygough | 0:584ea5db2696 | 6 | #define SCK p7 |
vickygough | 0:584ea5db2696 | 7 | |
vickygough | 0:584ea5db2696 | 8 | SPI spi(p5, p6, p7); // mosi, miso, sclk |
vickygough | 0:584ea5db2696 | 9 | DigitalOut chipSelect(p8); |
vickygough | 0:584ea5db2696 | 10 | |
vickygough | 0:584ea5db2696 | 11 | // CAN pins |
vickygough | 0:584ea5db2696 | 12 | // FILL THIS IN. |
vickygough | 0:584ea5db2696 | 13 | |
vickygough | 0:584ea5db2696 | 14 | //CAN can(CANrd, CANtd); |
vickygough | 0:584ea5db2696 | 15 | |
vickygough | 0:584ea5db2696 | 16 | // LDRs |
vickygough | 0:584ea5db2696 | 17 | AnalogIn LDR_SENSE1(p17); |
vickygough | 0:584ea5db2696 | 18 | AnalogIn LDR_SENSE2(p18); |
vickygough | 0:584ea5db2696 | 19 | |
vickygough | 0:584ea5db2696 | 20 | // Switches |
vickygough | 0:584ea5db2696 | 21 | DigitalIn TRACKING_SW(p21); |
vickygough | 0:584ea5db2696 | 22 | DigitalIn CANOPY_SW(p22); // Switch somewhere on array lifting mechanism. HIGH = |
vickygough | 0:584ea5db2696 | 23 | DigitalIn MODE_SW1(p23); |
vickygough | 0:584ea5db2696 | 24 | DigitalIn MODE_SW2(p24); |
vickygough | 0:584ea5db2696 | 25 | AnalogIn MANUAL_POSITION(p20); |
vickygough | 0:584ea5db2696 | 26 | |
vickygough | 0:584ea5db2696 | 27 | // Other |
vickygough | 0:584ea5db2696 | 28 | DigitalOut StatusLED(LED1); |