]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Add intial PWM support for the Pcduino's two capable pins
authorRyan L <ryestar101@gmail.com>
Mon, 25 Apr 2022 21:21:38 +0000 (22:21 +0100)
committerRyan L <ryestar101@gmail.com>
Mon, 25 Apr 2022 21:21:38 +0000 (22:21 +0100)
src/adafruit_blinka/board/linksprite/pcduino2.py
src/adafruit_blinka/microcontroller/allwinner/a10/pin.py

index c7f61219db60d312375c66c9a353c86c57997550..fad055e6756c851b4d63e810280fce8ab8db763c 100644 (file)
@@ -47,6 +47,9 @@ UART2_RX = D0
 UART5_TX = D3
 UART5_RX = D2
 
 UART5_TX = D3
 UART5_RX = D2
 
+PWM0 = D5
+PWM1 = D6
+
 #Misc
 BACK_SW = pin.PH17 #Three buttons featured on the board
 HOME_SW = pin.PH18
 #Misc
 BACK_SW = pin.PH17 #Three buttons featured on the board
 HOME_SW = pin.PH18
index faa44efe06ce4d2a36fb03279fe6fa08bb2420d8..9a8081c92599cee03d7ca090f61f21e458ae164d 100644 (file)
@@ -72,8 +72,8 @@ uartPorts = (
     (6, UART6_TX, UART6_RX),
 )
 # sysFs pwm outputs, pwm channel and pin first tuple
     (6, UART6_TX, UART6_RX),
 )
 # sysFs pwm outputs, pwm channel and pin first tuple
-pwmOuts = (((1,0), PWM0),
-           ((2,0), PWM1),
+pwmOuts = (((0,0), PWM0),
+           ((0,1), PWM1),
 )
 
 #sysFs analog inputs, Ordered as analogInId, device, and channel
 )
 
 #sysFs analog inputs, Ordered as analogInId, device, and channel