Kaynağa Gözat

add pwm example

Oliver Fabel 1 yıl önce
ebeveyn
işleme
ec4fbc1fb7
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  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)