@@ -46,32 +46,28 @@ const char *esp32_help_text =
46
46
"Using the e-ink display:\n"
47
47
"\n"
48
48
"import ugfx\n"
49
- "ugfx.init() # Initialize display\n"
50
49
"ugfx.clear(ugfx.BLACK) # Clear screen\n"
51
50
"ugfx.string(120, 50, \"Test\", \"Roboto_BlackItalic24\", ugfx.WHITE) # Write a string to the center of the screen\n"
52
51
"ugfx.flush() # Send the update to the screen\n"
53
52
"\n"
54
53
"Interfacing with the buttons:\n"
55
54
"\n"
56
55
"import ugfx\n"
57
- "ugfx.init() # Initialize ugfx subsystem\n"
58
56
"ugfx.input_init() # Initialize button callbacks\n"
59
57
"ugfx.input_attach(ugfx.JOY_UP, lambda pressed: print(pressed)) # Connect button callback function\n"
60
- "while True: pass # Stay in python loop to get events\n"
61
58
"\n"
62
59
"Controlling the RGBW LEDs:\n"
63
60
"TODO\n"
64
61
"\n"
65
62
"Starting an app called 'name' after sleepcycle:\n"
66
63
"\n"
67
- "import esp"
68
- "esp.rtcmem_write_string('name')"
69
- "esp.start_sleeping(1)"
64
+ "import appglue"
65
+ "appglue.start_app(name)"
70
66
"\n"
71
67
"Getting and setting configuration:\n"
72
68
"\n"
73
- "esp .nvs_set_str('namespace', 'key', 'value')\n"
74
- "esp .nvs_get_str('namespace', 'key', 'default_value')\n"
69
+ "badge .nvs_set_str('namespace', 'key', 'value')\n"
70
+ "badge .nvs_get_str('namespace', 'key', 'default_value')\n"
75
71
"\n"
76
72
"For further help on a specific object, type help(obj)\n"
77
73
"For a list of available modules, type help('modules')\n"
0 commit comments