Skip to content

Commit 9877217

Browse files
committed
Small help fixes
1 parent 4a25b7f commit 9877217

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

esp32/help.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,32 +46,28 @@ const char *esp32_help_text =
4646
"Using the e-ink display:\n"
4747
"\n"
4848
"import ugfx\n"
49-
"ugfx.init() # Initialize display\n"
5049
"ugfx.clear(ugfx.BLACK) # Clear screen\n"
5150
"ugfx.string(120, 50, \"Test\", \"Roboto_BlackItalic24\", ugfx.WHITE) # Write a string to the center of the screen\n"
5251
"ugfx.flush() # Send the update to the screen\n"
5352
"\n"
5453
"Interfacing with the buttons:\n"
5554
"\n"
5655
"import ugfx\n"
57-
"ugfx.init() # Initialize ugfx subsystem\n"
5856
"ugfx.input_init() # Initialize button callbacks\n"
5957
"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"
6158
"\n"
6259
"Controlling the RGBW LEDs:\n"
6360
"TODO\n"
6461
"\n"
6562
"Starting an app called 'name' after sleepcycle:\n"
6663
"\n"
67-
"import esp"
68-
"esp.rtcmem_write_string('name')"
69-
"esp.start_sleeping(1)"
64+
"import appglue"
65+
"appglue.start_app(name)"
7066
"\n"
7167
"Getting and setting configuration:\n"
7268
"\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"
7571
"\n"
7672
"For further help on a specific object, type help(obj)\n"
7773
"For a list of available modules, type help('modules')\n"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy