service.py 文件源码

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

项目:tinyjaguar 作者: calston 项目源码 文件源码
def powerGood(self, state):
        if state == gpio.LOW:
            self.atxGood = True
            print "ATX Good"
            yield self.sr.shiftOut(reduce(lambda x, y: x | y, self.green))
            yield utils.wait(200)
            yield self.sr.shiftOut(0)
            yield utils.wait(100)
            yield self.sr.shiftOut(reduce(lambda x, y: x | y, self.green))
            yield utils.wait(200)
            yield self.setLEDStates()

            # Start node 1
            if self.autoOn:
                self.autoOn = False
                yield self.nodeOn(0)
        else:
            print "ATX bad"
            self.atxGood = False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号