Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def getCurrentStation():
    log = sysCmd('mpc status')
    pos = log.find('[playing] #');
    log = log[pos:]
    endPos = log.find('/');
    log = log[11:endPos]
    return int(log)
        


src/m/e/mephisto_ii-HEAD/radio_control.py   mephisto_ii(Download)
    def __init__(self):
        #How many of the shift registers - change this
        self.number_of_74hc595s = 2
        self.numOfRegisterPins = self.number_of_74hc595s * 8
        self.ledPos = (mpc.getCurrentStation()-1)