Juan Pablo Giménez 5 년 전
부모
커밋
ae64ba1ff4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      modules/base_plugins/gpio_actor/__init__.py

+ 2
- 1
modules/base_plugins/gpio_actor/__init__.py 파일 보기

@@ -68,7 +68,8 @@ class GPIOPWM(ActorBase):
if self.frequency is None:
self.frequency = 0.5 # 2 sec

self.gpio_inst = GPIO.PWM(int(self.gpio), float(self.frequency))
if self.gpio_inst is None:
self.gpio_inst = GPIO.PWM(int(self.gpio), float(self.frequency))
self.gpio_inst.start(int(self.power))

def set_power(self, power):


불러오는 중...
취소
저장