hub.settings

Hub settings that are remembered after a restart.

Change a value, then call save() to keep it.

Attributes

allow_full_fs

Show the hub's whole file system in the Run program menu, not just the SD card.

ble_adv

Make the hub visible over Bluetooth when it starts (on by default).

show_batt_pct

Show the battery percentage at the top of the hub's screen.

usb_msc

Show the SD card as a USB drive on your computer when the hub starts.

Functions

save() → None

Save the current settings so they are used after a restart.

Module Contents

hub.settings.save() → None[source]

Save the current settings so they are used after a restart.

hub.settings.allow_full_fs: bool[source]

Show the hub’s whole file system in the Run program menu, not just the SD card.

hub.settings.ble_adv: bool[source]

Make the hub visible over Bluetooth when it starts (on by default).

hub.settings.show_batt_pct: bool[source]

Show the battery percentage at the top of the hub’s screen.

hub.settings.usb_msc: bool[source]

Show the SD card as a USB drive on your computer when the hub starts.