소스 검색

Update __init__.py

Added a wait time between the beeps.
tags/3.1_alpha
swimIan GitHub 8 년 전
부모
커밋
518a139b5d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      modules/buzzer/__init__.py

+ 1
- 1
modules/buzzer/__init__.py 파일 보기

@@ -9,7 +9,7 @@ except Exception as e:

class Buzzer(object):

sound = ["H", 0.1, "L", "H", 0.1, "L", "H", 0.1, "L"]
sound = ["H", 0.1, "L", 0.1, "H", 0.1, "L", 0.1, "H", 0.1, "L"]
def __init__(self, gpio):
try:
cbpi.app.logger.info("INIT BUZZER NOW GPIO%s" % gpio)


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