pizzabox-main/pizzactrl/statemachine_test.py

15 lines
455 B
Python
Raw Normal View History

2022-01-20 23:11:35 +00:00
import imp
import sys
import logging
logging.basicConfig(level=logging.DEBUG, stream=sys.stdout)
from pizzactrl.statemachine import Statemachine
2022-01-20 23:11:35 +00:00
# from pizzactrl.sb_dummy import STORYBOARD
from pizzactrl.sb_showcase import STORYBOARD
from pizzactrl.hal_serial import PizzaHAL, rewind, turn_off
hal = PizzaHAL()
2022-01-20 23:11:35 +00:00
# sm = Statemachine(hal, STORYBOARD, move=True, loop=False, test=True)
2022-01-20 23:11:35 +00:00
sm = Statemachine(hal, STORYBOARD, move=True, loop=False, test=False)