コード例 #1
0
ファイル: pyBus_eventDriver.py プロジェクト: Ufflo/pyBus
def init(writer):
  global WRITER, SESSION_DATA
  WRITER = writer
  pB_display.init(WRITER)
  pB_audio.init()
  WRITER.writeBusPacket('18', 'FF', ['02', '01'])

  SESSION_DATA["DOOR_LOCKED"] = False
  SESSION_DATA["SPEED_SWITCH"] = False

  pB_display.immediateText('PyBus Up')
  WRITER.writeBusPacket('3F', '00', ['0C', '4E', '01']) # Turn on the 'clown nose' for 3 seconds
コード例 #2
0
def init(writer):
    global WRITER, SESSION_DATA
    WRITER = writer
    pB_display.init(WRITER)
    pB_audio.init()
    WRITER.writeBusPacket('18', 'FF', ['02', '01'])

    SESSION_DATA["DOOR_LOCKED"] = False
    SESSION_DATA["SPEED_SWITCH"] = False

    pB_display.immediateText('PyBus Up')
    WRITER.writeBusPacket(
        '3F', '00',
        ['0C', '4E', '01'])  # Turn on the 'clown nose' for 3 seconds
コード例 #3
0
def init(writer):
  global WRITER, SESSION_DATA
  WRITER = writer

  pB_display.init(WRITER)
  pB_audio.init()
  pB_ticker.init(WRITER)
  
  pB_ticker.enableFunc("announce", 10)

  SESSION_DATA["DOOR_LOCKED"] = False
  SESSION_DATA["SPEED_SWITCH"] = False
  
  pB_display.cleardisplay():
  pB_display.immediateText('PyBus Up')
  WRITER.writeBusPacket('3F', '00', ['0C', '4E', '01']) # Turn on the 'clown nose' for 3 seconds
コード例 #4
0
def init(writer):
    global WRITER, SESSION_DATA
    WRITER = writer

    pB_display.init(WRITER)
    pB_audio.init()
    pB_ticker.init(WRITER)

    pB_ticker.enableFunc("announce", 10)

    SESSION_DATA["DOOR_LOCKED"] = False
    SESSION_DATA["SPEED_SWITCH"] = False

    WRITER.writeBusPacket(
        'c8', '80',
        ['23', '42', '32', '1e'
         ])  #clear IKEConsole LCD of messages before filling it with MPD info
    pB_display.immediateText('PyBus Up')
    WRITER.writeBusPacket(
        '3F', '00',
        ['0C', '4E', '01'])  # Turn on the 'clown nose' for 3 seconds