examples.pigweed.tools.console

Wraps pw_system’s console to inject quickstart’s RPC proto.

Classes

Functions

get_device_connection(...)

main(→ int)

Module Contents

class examples.pigweed.tools.console.Device(*args, **kwargs)[source]

Bases: pw_system.device.Device

toggle_led()[source]

Toggles the onboard (non-RGB) LED.

set_led(on: bool)[source]

Sets the onboard (non-RGB) LED.

Parameters:

on (bool)

Sets the onboard (non-RGB) LED to blink on and off.

examples.pigweed.tools.console.get_device_connection(setup_logging: bool = True, log_level: int = logging.DEBUG) pw_system.device_connection.DeviceConnection[source]
Parameters:
  • setup_logging (bool)

  • log_level (int)

Return type:

pw_system.device_connection.DeviceConnection

examples.pigweed.tools.console.main() int[source]
Return type:

int