소스 검색

add pwm example

Oliver Fabel 1 년 전
부모
커밋
ec4fbc1fb7
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  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)