File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
adafruit_blinka/microcontroller/allwinner/h618 Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ def find_gpiochip_number(target_label):
83
83
PG18 = Pin ((__chip_num , 210 ))
84
84
TWI3_SDA = PG18
85
85
PG19 = Pin ((__chip_num , 211 ))
86
+ PWM1 = PG19
86
87
87
88
PH0 = Pin ((__chip_num , 224 ))
88
89
PH1 = Pin ((__chip_num , 225 ))
@@ -124,6 +125,7 @@ def find_gpiochip_number(target_label):
124
125
UART3_RX = PI10
125
126
PI11 = Pin ((__chip_num , 267 ))
126
127
PI12 = Pin ((__chip_num , 268 ))
128
+ PWM2 = PI12
127
129
PI13 = Pin ((__chip_num , 269 ))
128
130
UART4_TX = PI13
129
131
PI14 = Pin ((__chip_num , 270 ))
@@ -150,3 +152,9 @@ def find_gpiochip_number(target_label):
150
152
(4 , UART4_TX , UART4_RX ),
151
153
(5 , UART5_TX , UART5_RX ),
152
154
)
155
+
156
+ # SysFS pwm outputs, pwm channel and pin in first tuple
157
+ pwmOuts = [
158
+ ((0 , 1 ), PWM1 ),
159
+ ((0 , 2 ), PWM2 ),
160
+ ]
Original file line number Diff line number Diff line change 18
18
19
19
if detector .board .any_raspberry_pi :
20
20
from adafruit_blinka .microcontroller .bcm283x .pwmio .PWMOut import PWMOut
21
+ elif detector .board .any_bananapi :
22
+ from adafruit_blinka .microcontroller .generic_linux .sysfs_pwmout import PWMOut
21
23
elif detector .board .any_coral_board :
22
24
from adafruit_blinka .microcontroller .generic_linux .sysfs_pwmout import PWMOut
23
25
elif detector .board .any_giant_board :
You can’t perform that action at this time.
0 commit comments