Sampling ldr temp and pressure data into 120 sample FIFO buffer.
Fork of Task690-mbed-os-FZ429ZI by
Hardware_Setup/hardware_setup.hpp@6:c2299e3de428, 2017-12-23 (annotated)
- Committer:
- osmith2
- Date:
- Sat Dec 23 18:44:37 2017 +0000
- Revision:
- 6:c2299e3de428
used sprintf to put all info (date,time,temp,pressure,ldr) into a string of characters, called DaT; ; It is my recommendation that the addToBuffer function be changed from float to char, as the only thing that needs to go into the buffer is DaT.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
osmith2 | 6:c2299e3de428 | 1 | #include "LCD.h" |
osmith2 | 6:c2299e3de428 | 2 | #ifndef __hardware_setup__ |
osmith2 | 6:c2299e3de428 | 3 | #define __hardware_setup__ |
osmith2 | 6:c2299e3de428 | 4 | extern DigitalOut onBoardLED; |
osmith2 | 6:c2299e3de428 | 5 | extern DigitalOut redLED; |
osmith2 | 6:c2299e3de428 | 6 | extern DigitalOut yellowLED; |
osmith2 | 6:c2299e3de428 | 7 | extern DigitalOut greenLED; |
osmith2 | 6:c2299e3de428 | 8 | |
osmith2 | 6:c2299e3de428 | 9 | extern DigitalIn onBoardSwitch; |
osmith2 | 6:c2299e3de428 | 10 | extern DigitalIn SW1; |
osmith2 | 6:c2299e3de428 | 11 | extern DigitalIn SW2; |
osmith2 | 6:c2299e3de428 | 12 | |
osmith2 | 6:c2299e3de428 | 13 | //extern Serial pc; |
osmith2 | 6:c2299e3de428 | 14 | extern AnalogIn adcIn; |
osmith2 | 6:c2299e3de428 | 15 | |
osmith2 | 6:c2299e3de428 | 16 | extern NewLCD LCD; |
osmith2 | 6:c2299e3de428 | 17 | |
osmith2 | 6:c2299e3de428 | 18 | extern void post(); |
osmith2 | 6:c2299e3de428 | 19 | |
osmith2 | 6:c2299e3de428 | 20 | #endif |