# Examples
## blinky
A classic HSM example - a machine that blinks an LED when enabled.
```
Top
├─ Disabled
└─ Enabled
├─ LedOn
└─ LedOff
```
Includes an interactive CLI to manipulate and update the machine while displaying its log messages.
### Run
`cargo run --example blinky`
### Inspect the autogenerated items
`cargo doc --open --document-private-items --example blinky`
## events
A basic implementation of an event-based state machine.
## test_mock
A basic usage of conditional compilation to substitute a test mock into a state machine.