demonstrate teensy 3.1 ADC internal channels: temperature sensor and VREF output
Fork of Teensy_MBED_BLINKY by
Diff: main.cpp
- Revision:
- 0:8495741fab9c
- Child:
- 1:e452bc59d245
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Jul 25 10:29:43 2015 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +// MBED_BLINKY with Teensy 3.1 +// LED2, LED3, LED3, LED4, LED_RED, LED_GREEN, LED_BLUE, PTC5 are the same +DigitalOut myled(LED1); + +int main() { + while(1) { + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + } +}