From 94720a74ce59348c52dcdf8a64ca0c28e6612d7d Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sat, 22 Oct 2022 19:39:10 +0700 Subject: [PATCH] kuukar OOP structure --- kuukar.py | 4 ++++ kuukar_collision.py | 5 +++++ kuukar_config.py | 8 ++++++++ kuukar_cv.py | 3 +++ kuukar_lcd.py | 0 kuukar_leds.py | 2 ++ kuukar_motion.py | 0 kuukar_noise.py | 0 kuukar_sensors.py | 0 kuukar_temperature.py | 2 ++ kuukar_voice.py | 0 requirements.txt | 2 ++ 12 files changed, 26 insertions(+) create mode 100644 kuukar.py create mode 100644 kuukar_collision.py create mode 100644 kuukar_config.py create mode 100644 kuukar_cv.py create mode 100644 kuukar_lcd.py create mode 100644 kuukar_leds.py create mode 100644 kuukar_motion.py create mode 100644 kuukar_noise.py create mode 100644 kuukar_sensors.py create mode 100644 kuukar_temperature.py create mode 100644 kuukar_voice.py create mode 100644 requirements.txt diff --git a/kuukar.py b/kuukar.py new file mode 100644 index 0000000..49e3500 --- /dev/null +++ b/kuukar.py @@ -0,0 +1,4 @@ +from telemetrix_rpi_pico import telemetrix_rpi_pico +if __name__ == '__main__': + board = telemetrix_rpi_pico.TelemetrixRpiPico() + pass \ No newline at end of file diff --git a/kuukar_collision.py b/kuukar_collision.py new file mode 100644 index 0000000..d674fcc --- /dev/null +++ b/kuukar_collision.py @@ -0,0 +1,5 @@ +class collision: + def __init__(self, board) -> None: + + def collision_handle(self): + pass \ No newline at end of file diff --git a/kuukar_config.py b/kuukar_config.py new file mode 100644 index 0000000..b7cf994 --- /dev/null +++ b/kuukar_config.py @@ -0,0 +1,8 @@ +COLLISION_DETECTOR_PIN = 2 +LEDS_DATA_PIN = 3 +MOTOR_FL_F = 4 +MOTOR_FL_R = 5 +MOTOR_FR_F = 6 +MOTOR_FL_R = 7 +MOTOR_R_F = 8 +MOTOR_R_R = 9 \ No newline at end of file diff --git a/kuukar_cv.py b/kuukar_cv.py new file mode 100644 index 0000000..ef3701d --- /dev/null +++ b/kuukar_cv.py @@ -0,0 +1,3 @@ +class cv: + def detectFace(self, image): + pass \ No newline at end of file diff --git a/kuukar_lcd.py b/kuukar_lcd.py new file mode 100644 index 0000000..e69de29 diff --git a/kuukar_leds.py b/kuukar_leds.py new file mode 100644 index 0000000..e35688a --- /dev/null +++ b/kuukar_leds.py @@ -0,0 +1,2 @@ +class leds: + pass \ No newline at end of file diff --git a/kuukar_motion.py b/kuukar_motion.py new file mode 100644 index 0000000..e69de29 diff --git a/kuukar_noise.py b/kuukar_noise.py new file mode 100644 index 0000000..e69de29 diff --git a/kuukar_sensors.py b/kuukar_sensors.py new file mode 100644 index 0000000..e69de29 diff --git a/kuukar_temperature.py b/kuukar_temperature.py new file mode 100644 index 0000000..f8bdcbc --- /dev/null +++ b/kuukar_temperature.py @@ -0,0 +1,2 @@ +class temperature: + pass \ No newline at end of file diff --git a/kuukar_voice.py b/kuukar_voice.py new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..195ca31 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +telemetrix-rpi-pico +pyaudio \ No newline at end of file