kuukar-rpi/kuukar.py

20 lines
804 B
Python
Raw Normal View History

2022-10-22 12:39:10 +00:00
from telemetrix_rpi_pico import telemetrix_rpi_pico
2022-10-28 07:14:00 +00:00
import kuukar_leds
import kuukar_collision
import kuukar_motion
import kuukar_lcd
import kuukar_sensors
import kuukar_environment
from kuukar_config import SERIAL_AUX_BOARD, SERIAL_DRIVER_BOARD
2022-10-28 07:14:00 +00:00
2022-10-22 12:39:10 +00:00
if __name__ == '__main__':
aux_board = telemetrix_rpi_pico.TelemetrixRpiPico(com_port=SERIAL_AUX_BOARD)
driver_board = telemetrix_rpi_pico.TelemetrixRpiPico(com_port=SERIAL_DRIVER_BOARD)
2022-10-28 07:14:00 +00:00
sensors = kuukar_sensors.sensors(aux_board, driver_board)
leds = kuukar_leds.leds(aux_board=aux_board)
lcd = kuukar_lcd.lcd()
2022-10-28 07:14:00 +00:00
environment = kuukar_environment.environment(lcd, leds, sensors)
collision = kuukar_collision.collision(aux_board, lcd, leds)
motion = kuukar_motion.motion(driver_board=driver_board, leds=leds, sensors=sensors)