diff options
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/__pycache__/i2c.cpython-312.pyc | bin | 4218 -> 0 bytes | |||
| -rw-r--r-- | bin/display.c | 5 | ||||
| -rw-r--r-- | bin/main.py | 10 | ||||
| -rwxr-xr-x | bin/test | bin | 16016 -> 0 bytes |
4 files changed, 12 insertions, 3 deletions
diff --git a/bin/__pycache__/i2c.cpython-312.pyc b/bin/__pycache__/i2c.cpython-312.pyc Binary files differdeleted file mode 100644 index a2ea22c..0000000 --- a/bin/__pycache__/i2c.cpython-312.pyc +++ /dev/null diff --git a/bin/display.c b/bin/display.c index 51a0873..b960ff1 100644 --- a/bin/display.c +++ b/bin/display.c @@ -1,4 +1,7 @@ #include <gtk/gtk.h> +#include <stdio.h> +#include <string.h> + static void activate(GtkApplication *app, gpointer user_data) { // Create a new application window @@ -24,4 +27,4 @@ int main(int argc, char *argv[]) { g_object_unref(app); return status; -}
\ No newline at end of file +} diff --git a/bin/main.py b/bin/main.py index 482fde0..17b506d 100644 --- a/bin/main.py +++ b/bin/main.py @@ -57,11 +57,17 @@ def recognize_speech(): def save_notes(): print("Type your notes (type 'stop' to exit):") + print("Type line=1 or line=2 to print something to a specific line") while True: - output = input() + line = 1 + output = input(":") if output.lower() in ["stop", "break", "quit", "exit"]: break - lcd_instance.text(output, 1) + if output == "line=1": + line = 1 + elif output == "line=2": + line = 2 + lcd_instance.text(output, line) time.sleep(2) diff --git a/bin/test b/bin/test Binary files differdeleted file mode 100755 index 180427d..0000000 --- a/bin/test +++ /dev/null |
