File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 15
15
import pwmio
16
16
import busio
17
17
18
-
19
-
20
18
#--------------- PINS DECLARATION ---------------#
21
19
22
- # IR_Cmd pin declaration
23
- ir_cmd_pin = DigitalInOut (board .IO34 )
24
-
25
- # boot pin declaration
26
- boot = DigitalInOut (board .IO0 )
27
-
28
- # Line led declaration
29
- lineLed = DigitalInOut (board .IO18 )
30
-
31
- # UART pins declaration
32
- uart = busio .UART (board .IO43 , board .IO44 )
33
-
34
- # I2C pins declaration
35
- i2c = busio .I2C (board .IO8 , board .IO9 )
36
-
37
- # Header pins declaration
38
- header_3_pin = DigitalInOut (board .IO2 )
39
-
40
20
# Setup the BATTERY voltage sense pin
41
21
vbat_voltage = AnalogIn (board .BATTERY )
42
22
59
39
BIN1 = pwmio .PWMOut (board .IO35 )
60
40
BIN2 = pwmio .PWMOut (board .IO37 )
61
41
62
-
63
-
64
-
65
42
#--------------- INTERNAL VOLTAGES ---------------#
66
43
67
44
# Measure the battery voltage
You can’t perform that action at this time.
0 commit comments