![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
testing forking
Fork of ConsolTest by
Diff: main.cpp
- Revision:
- 3:1ef4740c5a64
- Parent:
- 2:7d53e9959b8f
- Child:
- 4:e61cd14ec4f0
--- a/main.cpp Tue Jun 30 11:35:44 2015 +0000 +++ b/main.cpp Wed Jul 01 09:55:47 2015 +0000 @@ -6,16 +6,19 @@ int main() { pc.printf("new program \n"); - + while(1) { - if (input == 1) + if (input) { - pc.printf("true \n"); + pc.printf("digital in = 1 \n"); led = 1; + // wait(0); } else { - pc.printf("true \n"); + pc.printf("digital in = 0 \n"); + led = 0; + // wait(0); led = 0; } }