commit 1717b21cd33944d07d7442848c5115b31593d914 Author: Siwat Sirichai Date: Thu May 5 19:00:29 2022 +0700 initial commit 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