From 1717b21cd33944d07d7442848c5115b31593d914 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 5 May 2022 19:00:29 +0700 Subject: [PATCH] initial commit --- .gitignore | 2 ++ init.py | 0 main.py | 8 ++++++++ pins.py | 23 +++++++++++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 .gitignore create mode 100644 init.py create mode 100644 main.py create mode 100644 pins.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd20fdd --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +*.pyc diff --git a/init.py b/init.py new file mode 100644 index 0000000..e69de29 diff --git a/main.py b/main.py new file mode 100644 index 0000000..d8aaa04 --- /dev/null +++ b/main.py @@ -0,0 +1,8 @@ +import pins +from telemetrix import telemetrix +board = telemetrix.Telemetrix() + +board.set_pin_mode_digital_output(pins.R1) +board.digital_write(pins.R1,1) + +board.shutdown() \ No newline at end of file diff --git a/pins.py b/pins.py new file mode 100644 index 0000000..40075d6 --- /dev/null +++ b/pins.py @@ -0,0 +1,23 @@ +R0 = 4 +R1 = 5 +R2 = 6 +R3 = 7 +R4 = 8 +R5 = 9 + +A0 = 0 +A1 = 1 +A2 = 2 +A3 = 3 +A4 = 4 +A5 = 5 + +I0 = 2 +I1 = 3 + +D0 = 4 +D1 = 5 +D2 = 6 +D3 = 7 +D4 = 8 +D5 = 9 \ No newline at end of file