ui.hubui – menu system¶
Runs the menu system that you see when you boot up the Hub (and between running programs). The entire functionality is contained in submodule ui.hubui, although the main module also aliases the ui.hubui.HubUI class as ui.HubUI.
Constants¶
- ui.hubui.INACTIVE_SHUTDOWN_BT_MS = 1200000¶
???
- ui.hubui.INACTIVE_SHUTDOWN_MS = 300000¶
???
- ui.hubui.DEFAULT_IMAGE = (Image('09090:99999:99999:09990:00900:'), Image('09000:09900:09990:09900:09000:'))¶
???
- ui.hubui.SLOTS_IMAGE = (Image('09990:09090:09090:09090:09990:'), Image('00900:09900:00900:00900:09990:'), Image('09990:00090:09990:09000:09990:'), Image('09990:00090:09990:00090:09990:'), Image('09090:09090:09990:00090:00090:'), Image('09990:09000:09990:00090:09990:'), Image('09990:09000:09990:09090:09990:'), Image('09990:00090:00900:09000:09000:'), Image('09990:09090:09990:09090:09990:'), Image('09990:09090:09990:00090:09990:'), Image('90999:90909:90909:90909:90999:'), Image('09009:99099:09009:09009:09009:'), Image('90999:90009:90999:90900:90999:'), Image('90999:90009:90999:90009:90999:'), Image('90909:90909:90999:90009:90009:'), Image('90999:90900:90999:90009:90999:'), Image('90999:90900:90999:90909:90999:'), Image('90999:90009:90090:90900:90900:'), Image('90999:90909:90999:90909:90999:'), Image('90999:90909:90999:90009:90999:'))¶
???
Class HubUI¶
- class ui.hubui.HubUI(???)¶
???
Methods
- __bt_disconnect(???)¶
???
- __toggle_program(???)¶
???
- __change_slot(???)¶
Closure function. ???
- _program_start(???)¶
Generator function. ???
- stop_all(???)¶
Closure function. ???
- change_execution_mode(???)¶
Closure function. ???
- start_program(???)¶
Closure function. ???
- __cancel_animations(???)¶
???
- __start_autoshutdown(???)¶
???
- __on_center_button(???)¶
Closure function. ???
- _program_stop(???)¶
Generator function. ???
- __get_slot_image(???)¶
???
- __on_connect_button(???)¶
Closure function. ???
- __bt_connect(???)¶
???
- will_stop_restart(???)¶
???
- __shutdown_timer(???)¶
???
- on_connection(???)¶
Closure function. ???
Properties
- property idle¶
???
Imports¶
Class
ProgramRunnerClass
SoundsClass
system.SystemFunction
event_loop.get_event_loopFunction
micropython.constFunction
util.animations.bootup_animationGenerator function
util.animations.bt_animationFunction
util.animations.download_animationGenerator function
util.animations.led_fade_toFunction
util.animations.shutdown_animationFunction
util.animations.streaming_animationGenerator function
util.animations.shift_in_from_bottomGenerator function
util.animations.shift_out_to_bottomFunction
util.storage.get_used_slotsConstant
util.color.DIM_WHITE= (135, 25, 10)Constant
util.color.WHITE= (255, 70, 35)