raspi.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:phony 作者: littlecraft 项目源码 文件源码
def __init__(self, layout):
    ClassLogger.__init__(self)

    # IO event callbacks occur in another thread, dbus/gdk need
    # to be made aware of this.
    gobject.threads_init()

    GPIO.setwarnings(False)
    GPIO.setmode(GPIO.BCM)

    self._layout = layout
    for name, config in layout.iteritems():
      for point in ['pin', 'default']:
        Outputs._raise_if_not_in(point, config)

      self._conigure_output(name, config)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号