demonstrate teensy 3.1 ADC internal channels: temperature sensor and VREF output
Fork of Teensy_MBED_BLINKY by
main.cpp@0:8495741fab9c, 2015-07-25 (annotated)
- Committer:
- yoonghm
- Date:
- Sat Jul 25 10:29:43 2015 +0000
- Revision:
- 0:8495741fab9c
- Child:
- 1:e452bc59d245
MBED_BLINKY for Teensy 3.1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yoonghm | 0:8495741fab9c | 1 | #include "mbed.h" |
yoonghm | 0:8495741fab9c | 2 | |
yoonghm | 0:8495741fab9c | 3 | // MBED_BLINKY with Teensy 3.1 |
yoonghm | 0:8495741fab9c | 4 | // LED2, LED3, LED3, LED4, LED_RED, LED_GREEN, LED_BLUE, PTC5 are the same |
yoonghm | 0:8495741fab9c | 5 | DigitalOut myled(LED1); |
yoonghm | 0:8495741fab9c | 6 | |
yoonghm | 0:8495741fab9c | 7 | int main() { |
yoonghm | 0:8495741fab9c | 8 | while(1) { |
yoonghm | 0:8495741fab9c | 9 | myled = 1; |
yoonghm | 0:8495741fab9c | 10 | wait(0.2); |
yoonghm | 0:8495741fab9c | 11 | myled = 0; |
yoonghm | 0:8495741fab9c | 12 | wait(0.2); |
yoonghm | 0:8495741fab9c | 13 | } |
yoonghm | 0:8495741fab9c | 14 | } |