Karanovic_Semafor

Dependencies:   mbed LED

https://os.mbed.com/media/uploads/akaranovi/20201201_212425.jpg

Program se sastoji od: -5x LED-ice od kojih svaka prikazuje jedno stanje na semaforu -1x Integrirano tipkalo za Hardverski interrupt -1x NUCLEO-F072RB pločica mikroupravljača

Program simulira rad semafora za automobile i pješake. Automobilima je zeleno svijetlo 15 sekundi nakon čega se pali zeleno svijetlo za pješake koje traje 7 sekundi. U slučaju pritiska na hardverski interrupt "blinka" žuto svijetlo 10 sekundi nakon čega program nastavlja sa normalnim radom.

Files at this revision

API Documentation at this revision

Comitter:
akaranovi
Date:
Sun Nov 29 12:12:23 2020 +0000
Parent:
0:c3966e70a28e
Commit message:
OK

Changed in this revision

LED.lib Show annotated file Show diff for this revision Revisions of this file
diff -r c3966e70a28e -r f40a898ee10e LED.lib
--- a/LED.lib	Sun Nov 29 12:09:11 2020 +0000
+++ b/LED.lib	Sun Nov 29 12:12:23 2020 +0000
@@ -1,1 +1,1 @@
-LED#8b4a8e2414db
+https://os.mbed.com/users/akaranovi/code/LED/#8b4a8e2414db