From ed2cf3122184e91a9c99656cc3c832f1f76d7cdc Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Mon, 14 Nov 2022 11:14:35 +0700 Subject: [PATCH] kuukar master class --- kuukar/kuukar.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 kuukar/kuukar.py diff --git a/kuukar/kuukar.py b/kuukar/kuukar.py new file mode 100644 index 0000000..38212c5 --- /dev/null +++ b/kuukar/kuukar.py @@ -0,0 +1,19 @@ +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 + +class kuukar: + def __init__(self) -> None: + self.mcu = telemetrix_rpi_pico.TelemetrixRpiPico(com_port=SERIAL_MCU, sleep_tune=0.001) + self.drv = telemetrix_rpi_pico.TelemetrixRpiPico(com_port=SERIAL_DRV, sleep_tune=0.001) + self.sensors = kuukar_sensors.sensors(self.mcu) + self.leds = kuukar_leds.leds(self.mcu) + self.motion = kuukar_motion.motion(self.mcu, self.drv, self.leds, self.sensors) + self.lcd = kuukar_lcd.lcd(self.motion, self.sensors) + self.environment = kuukar_environment.environment(self.lcd, self.leds, self.sensors) + self.collision = kuukar_collision.collision(self.mcu, self.lcd, self.leds) \ No newline at end of file