瀏覽代碼

Merge pull request #90 from swimIan/master

Add 2 more beeps to the Buzzer
tags/3.1_alpha
Manuel83 GitHub 8 年之前
父節點
當前提交
805b3fae1b
共有 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): class Buzzer(object):


sound = ["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): def __init__(self, gpio):
try: try:
cbpi.app.logger.info("INIT BUZZER NOW GPIO%s" % gpio) cbpi.app.logger.info("INIT BUZZER NOW GPIO%s" % gpio)


Loading…
取消
儲存