![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
testing forking
Fork of ConsolTest by
main.cpp
- Committer:
- aidanPJG
- Date:
- 2015-06-30
- Revision:
- 0:7f5f4575bc6f
- Child:
- 1:860a22e395c9
File content as of revision 0:7f5f4575bc6f:
#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"); } } }