| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| main.c | 2023-02-20 | 2.1 kB | |
| README.txt | 2023-02-20 | 356 Bytes | |
| stoplight.c | 2023-02-20 | 3.6 kB | |
| stoplight.h | 2023-02-20 | 2.2 kB | |
| stoplight.sm | 2023-02-20 | 2.0 kB | |
| Makefile | 2023-02-20 | 2.7 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