initial commit

This commit is contained in:
Siwat Sirichai 2022-05-05 19:00:29 +07:00
commit 1717b21cd3
4 changed files with 33 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.pyc

0
init.py Normal file
View File

8
main.py Normal file
View File

@ -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()

23
pins.py Normal file
View File

@ -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