![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
testing forking
Fork of ConsolTest by
Diff: main.cpp
- Revision:
- 0:7f5f4575bc6f
- Child:
- 1:860a22e395c9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jun 30 11:16:43 2015 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" + +Serial pc(USBTX, USBRX); // tx, rx +DigitalIn input(p8); +PwmOut led(LED1); + +float brightness = 0.0; + +int main() { + pc.printf("Press 'u' to turn LED1 brightness up, 'd' to turn it down\n"); + + while(1) { + if (input) + { + pc.printf("true"); + } + else + { + pc.printf("false"); + } + + } +} \ No newline at end of file