Skip to content

Instantly share code, notes, and snippets.

@kierdavis
Created August 6, 2019 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kierdavis/8ea8e80fc1cf04224315953ca08d2fbe to your computer and use it in GitHub Desktop.
Save kierdavis/8ea8e80fc1cf04224315953ca08d2fbe to your computer and use it in GitHub Desktop.
Testing SR v4 PowerBoard.
Waiting for start button...
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.led:set_led_state(identifier=0, state=True)
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.led:set_led_state(identifier=0, state=False)
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.led:set_led_state(identifier=0, state=True)
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.led:set_led_state(identifier=0, state=False)
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.led:set_led_state(identifier=0, state=True)
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> False
DEBUG:j5.components.button:get_button_state(identifier=0) -> True
DEBUG:j5.components.led:set_led_state(identifier=0, state=True)
Serial number: SB_PB_E
Firmware version: 3
DEBUG:j5.components.battery_sensor:get_battery_sensor_voltage(identifier=0) -> 11.38
Battery voltage: 11.38 V
DEBUG:j5.components.battery_sensor:get_battery_sensor_current(identifier=0) -> 0.02
Battery current: 0.02 A
Output PowerOutputPosition.H0 on.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=0, enabled=True)
Output PowerOutputPosition.H1 on.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=1, enabled=True)
Output PowerOutputPosition.L0 on.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=2, enabled=True)
Output PowerOutputPosition.L1 on.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=3, enabled=True)
Output PowerOutputPosition.L2 on.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=4, enabled=True)
Output PowerOutputPosition.L3 on.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=5, enabled=True)
DEBUG:j5.components.power_output:get_power_output_current(identifier=0) -> 0.052
Output PowerOutputPosition.H0 current: 0.052 A
DEBUG:j5.components.power_output:get_power_output_current(identifier=1) -> 0.052
Output PowerOutputPosition.H1 current: 0.052 A
DEBUG:j5.components.power_output:get_power_output_current(identifier=2) -> 0.045
Output PowerOutputPosition.L0 current: 0.045 A
DEBUG:j5.components.power_output:get_power_output_current(identifier=3) -> 0.015
Output PowerOutputPosition.L1 current: 0.015 A
DEBUG:j5.components.power_output:get_power_output_current(identifier=4) -> 0.045
Output PowerOutputPosition.L2 current: 0.045 A
DEBUG:j5.components.power_output:get_power_output_current(identifier=5) -> 0.015
Output PowerOutputPosition.L3 current: 0.015 A
Output PowerOutputPosition.H0 off.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=0, enabled=False)
Output PowerOutputPosition.H1 off.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=1, enabled=False)
Output PowerOutputPosition.L0 off.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=2, enabled=False)
Output PowerOutputPosition.L1 off.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=3, enabled=False)
Output PowerOutputPosition.L2 off.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=4, enabled=False)
Output PowerOutputPosition.L3 off.
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=5, enabled=False)
Buzzing at pitch: 1047.0
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.C6: 1047.0>)
Buzzing at pitch: 1174.7
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.D6: 1174.7>)
Buzzing at pitch: 1318.5
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.E6: 1318.5>)
Buzzing at pitch: 1396.9
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.F6: 1396.9>)
Buzzing at pitch: 1568.0
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.G6: 1568.0>)
Buzzing at pitch: 1760.0
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.A6: 1760.0>)
Buzzing at pitch: 1975.5
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.B6: 1975.5>)
Buzzing at pitch: 2093.0
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.C7: 2093.0>)
Buzzing at pitch: 2349.3
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.D7: 2349.3>)
Buzzing at pitch: 2637.0
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.E7: 2637.0>)
Buzzing at pitch: 2793.8
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.F7: 2793.8>)
Buzzing at pitch: 3136.0
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.G7: 3136.0>)
Buzzing at pitch: 3520.0
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.A7: 3520.0>)
Buzzing at pitch: 3951.1
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.B7: 3951.1>)
Buzzing at pitch: 4186.0
DEBUG:j5.components.piezo:buzz(identifier=0, duration=datetime.timedelta(microseconds=100000), frequency=<Note.C8: 4186.0>)
LED <j5.components.led.LED object at 0x7faf9e8ff080> is on.
DEBUG:j5.components.led:set_led_state(identifier=0, state=True)
LED <j5.components.led.LED object at 0x7faf9e8ff080> is off.
DEBUG:j5.components.led:set_led_state(identifier=0, state=False)
LED <j5.components.led.LED object at 0x7faf9e883400> is on.
DEBUG:j5.components.led:set_led_state(identifier=1, state=True)
LED <j5.components.led.LED object at 0x7faf9e883400> is off.
DEBUG:j5.components.led:set_led_state(identifier=1, state=False)
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=0, enabled=False)
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=1, enabled=False)
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=2, enabled=False)
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=3, enabled=False)
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=4, enabled=False)
DEBUG:j5.components.power_output:set_power_output_enabled(identifier=5, enabled=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment