12345678910111213141516171819 |
- from LED import LED, cleanup
- from City import City
- from Controller import Controller
- import atexit
- LED_PORT = 12
- @atexit.register
- def exit():
- cleanup()
- beijing = City("北京")
- light = LED(LED_PORT)
- controller = Controller()
- controller.add(beijing, light)
|