Explorar o código

add pwm example

Oliver Fabel hai 1 ano
pai
achega
ec4fbc1fb7
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      examples/flipperzero_pwm_test.py

+ 7 - 0
examples/flipperzero_pwm_test.py

@@ -0,0 +1,7 @@
+import flipperzero as f0
+import time
+
+f0.pwm_start(f0.GPIO_PIN_PA7, 4, 50)
+time.sleep(5)
+f0.pwm_start(f0.GPIO_PIN_PA7, 1, 50)
+time.sleep(5)