Boon Boon
/
traffic_light_gate_pj
simple 3 traffic light with interrupt (to change specific traffic light to green)
Revision 1:7bad12e1bbbc, committed 2018-07-04
- Comitter:
- daklowprofile
- Date:
- Wed Jul 04 00:01:15 2018 +0000
- Parent:
- 0:9a9e02000311
- Commit message:
- fixed timer for traffic light 3 interrupt
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9a9e02000311 -r 7bad12e1bbbc main.cpp --- a/main.cpp Tue Jul 03 12:02:52 2018 +0000 +++ b/main.cpp Wed Jul 04 00:01:15 2018 +0000 @@ -296,7 +296,7 @@ traffic_default('R','R','G',15); traffic_default('R','R','Y',3); } - if(timer_tf.read() >= 52/*91*/ && timer_tf.read() <= 94){ + if(timer_tf.read() >= 91 && timer_tf.read() <= 94){ //traffic_timer('R','Y','R'); wait(3); traffic_default('R','R','G',15);