-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
ports/esp32/modmachine: Callbacks for system events. #7562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
ports/esp32/modmachine: Callbacks for system events. #7562
Conversation
Capability to register Callbacks on wifi/eth/ip-events. Signed-off-by: Tobias Eydam <eydam-prototyping@outlook.com>
Capability to register Callbacks on wifi/eth/ip-events. Signed-off-by: Tobias Eydam <eydam-prototyping@outlook.com>
Capability to register Callbacks on wifi/eth/ip-events. Signed-off-by: Tobias Eydam <eydam-prototyping@outlook.com>
PicoDVI in CP support 640x480 and 800x480 on Feather DVI, Pico and Pico W. 1 and 2 bit grayscale are full resolution. 8 and 16 bit color are half resolution. Memory layout is modified to give the top most 4k of ram to the second core. Its MPU is used to prevent flash access after startup. The port saved word is moved to a watchdog scratch register so that it doesn't get overwritten by other things in RAM. Right align status bar and scroll area. This normally gives a few pixels of padding on the left hand side and improves the odds it is readable in a case. Fixes micropython#7562 Fixes c stack checking. The length was correct but the top was being set to the current stack pointer instead of the correct top. Fixes micropython#7643 This makes Bitmap subscr raise IndexError instead of ValueError when the index arguments are wrong.
PicoDVI in CP support 640x480 and 800x480 on Feather DVI, Pico and Pico W. 1 and 2 bit grayscale are full resolution. 8 and 16 bit color are half resolution. Memory layout is modified to give the top most 4k of ram to the second core. Its MPU is used to prevent flash access after startup. The port saved word is moved to a watchdog scratch register so that it doesn't get overwritten by other things in RAM. Right align status bar and scroll area. This normally gives a few pixels of padding on the left hand side and improves the odds it is readable in a case. Fixes micropython#7562 Fixes c stack checking. The length was correct but the top was being set to the current stack pointer instead of the correct top. Fixes micropython#7643 This makes Bitmap subscr raise IndexError instead of ValueError when the index arguments are wrong.
This is an automated heads-up that we've just merged a Pull Request See #13763 A search suggests this PR might apply the STATIC macro to some C code. If it Although this is an automated message, feel free to @-reply to me directly if |
Capability to register Callbacks on wifi/eth/ip-events.
Signed-off-by: Tobias Eydam eydam-prototyping@outlook.com
With this PR you can register callbacks on wifi/eth/ip-events:
With this you could set status LEDs, for example, which is great for debugging.
Currently supported event_bases are EVENT_BASE_WIFI, EVENT_BASE_IP, EVENT_BASE_ETH and EVENT_BASE_ANY.
You have to create the WLAN-Object first and then assign the callbacks, because the wifi event loop is re-initialized on
w.active(True)
.