Collinz is a bo$$_17
/
GCAWLINNNNNNNNZZZ
LED/level code
Diff: main.cpp
- Revision:
- 1:9e0c8f9c58b8
- Parent:
- 0:ac6957e368c3
- Child:
- 2:cd1677d8dcea
--- a/main.cpp Thu Oct 16 19:02:54 2014 +0000 +++ b/main.cpp Thu Oct 16 19:13:59 2014 +0000 @@ -4,6 +4,7 @@ DigitalIn sw2(p17); DigitalIn sw3(p18); DigitalIn sw4(p19); +DigitalIn sw5(p20); BusOut LED(p5,p6,p7,p8,p11); @@ -11,6 +12,7 @@ int switch2=sw2; int switch3=sw3; int switch4=sw4; +int switch5=sw5; int main() { @@ -32,6 +34,10 @@ LED=rand()%65; wait(.05); } + while (switch5==1) { + LED=rand()%65; + wait(.03); + } }