kuukar-rpi/kuukar/kuukar.py

24 lines
1010 B
Python
Raw Normal View History

2022-11-14 04:14:35 +00:00
from telemetrix_rpi_pico import telemetrix_rpi_pico
import kuukar.kuukar_leds as kuukar_leds
import kuukar.kuukar_collision as kuukar_collision
import kuukar.kuukar_motion as kuukar_motion
import kuukar.kuukar_lcd as kuukar_lcd
import kuukar.kuukar_sensors as kuukar_sensors
import kuukar.kuukar_environment as kuukar_environment
from kuukar.kuukar_config import SERIAL_MCU, SERIAL_DRV
2022-12-08 13:07:29 +00:00
2022-11-14 04:14:35 +00:00
class kuukar:
def __init__(self) -> None:
2022-12-08 13:07:29 +00:00
self.mcu = telemetrix_rpi_pico.TelemetrixRpiPico(
com_port=SERIAL_MCU, sleep_tune=0.001)
2022-12-08 14:36:11 +00:00
self.sensors = kuukar_sensors.sensors(self.mcu)
2022-11-14 04:14:35 +00:00
self.leds = kuukar_leds.leds(self.mcu)
2022-12-08 13:07:29 +00:00
self.motion = kuukar_motion.motion(
self.mcu, self.drv, self.leds, self.sensors)
2022-11-14 04:14:35 +00:00
self.lcd = kuukar_lcd.lcd(self.motion, self.sensors)
2022-12-08 13:07:29 +00:00
self.environment = kuukar_environment.environment(
self.lcd, self.leds, self.sensors)
self.collision = kuukar_collision.collision(
self.mcu, self.lcd, self.leds)