Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
main.c | 2020-12-31 | 2.1 kB | |
Makefile | 2020-12-31 | 2.7 kB | |
README.txt | 2020-12-31 | 356 Bytes | |
stoplight.c | 2020-12-31 | 3.6 kB | |
stoplight.h | 2020-12-31 | 2.2 kB | |
stoplight.sm | 2020-12-31 | 2.0 kB | |
Totals: 6 Items | 13.0 kB | 0 |
C Example 4 Simplistic, non-graphical simulation of a stoplight. Demonstrates how to use state machines to handle external events (in this case timeouts). + Building ---------- NOTE: Smc.jar must be built and installed. Unix & Windows (MinGW): $ make traffic + Executing ----------- Unix & Windows: $ traffic