pizzabox-main/pizzactrl/statemachine_test.py
jpunkt d837134db5 Major refactoring:
- New Storyboard class now has execution logic included
- Implemented dummy storyboard for testing
- Language selection is a state in Statemachine
- Added test class for instantiating a Statemachine
2022-01-17 20:39:36 +01:00

12 lines
326 B
Python

import sys
import logging
logging.basicConfig(level=logging.DEBUG, stream=sys.stdout)
from pizzactrl.statemachine import Statemachine
from pizzactrl.sb_dummy import STORYBOARD
from pizzactrl.hal_serial import PizzaHAL, rewind, turn_off
hal = PizzaHAL()
sm = Statemachine(hal, STORYBOARD, move=True, loop=False, test=True)