Explorar el Código

add pwm example

Oliver Fabel hace 1 año
padre
commit
ec4fbc1fb7
Se han modificado 1 ficheros con 7 adiciones y 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)