Deep Dive w/Scott: Release Candidate 0 and sleepio


Oct 15 2020 138 mins   7
Deep Dive happens every week. Normally Fridays at 2pm Pacific but occasionally shifted to Thursday at 2pm. Typically goes for two hours or more. Questions are welcome. I’m sponsored by Adafruit to work on CircuitPython. Support them, and by extension me, by purchasing hardware from https://adafruit.com Chat with me and lot of others on the Adafruit Discord at https://adafru.it/discord. Next week’s stream is on Friday. 0:00 Getting everything going 2:00 Housekeeping 8:05 Plan 9:17 6.0.0-rc.0 is out! Please help us test. https://github.com/adafruit/circuitpython/releases 17:45 UF2 on ESP32-S2 18:00 LED filter purple / yellow / green states of the RGB LED Red light indicates UF2-Boot 20:00 Free RTOS 21:00 Partition Layout - Purple - Stage 2 boot loader… (decides between ota_0 and ota_1) 24:00 - download latest CP from s3 ( absolute latest ) 27:00 new product idea - feather sized LED acrylic 4 versions of boot loaders 29:00 Uf2-esp32s branch /generalize-bootloader 31:00 PIN_NEOPIXEL in board_led_state 35:29 RTS, CTS in UART 41:07 Arduino libraries in CircuitPython https://wiki.seeedstudio.com/ArduPy/ 42:43 More release talk 45:20 https://medium.com/bhdynamics/dynossat-edu-newspace-at-your-reach-9c2f88ca52e6 49:45 - getting the cp 6.0 release onto circuitpython-org 51:20 - ( but first - check the release notes and the green CI ) 1:05:00 - checking on release 1:06:40 - blog and forum posts announce release ( use convert*releasenotes*md tool ) 1:12:05 blog post ( blog.adafruit.com ) ( copy html and URL ) 1:15:00 tweet - https://twitter.com/adafruit/status/1317226793473085440 1:31:52 Suggestion for starting point/tutorials to learn how to start translating over from arduino sensors to python, so I can pitch in to the circuitpython effort? I am an enterprise dev using C#, js, etc https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library https://learn.adafruit.com/circuitpython-essentials/ https://www.youtube.com/watch?v=DdB3QS4_QQU https://www.adafruit.com/product/4777 52:55 RTOS - https://zephyrproject.org/ 1:01:57 - super-loop in circuitpython See CP main.c for (;;) { } 1:18:50 https://jaycarlson.net/embedded-linux/ 1:26:13 Go Runtime on bare metal ? 1:27:20 Recently close pull requests ( see above in the plan ) 1:32:34 - getting started topics Read the docs - latest drivers ( all adafruit products ) Circuitpython community bundle ( non adafruit supported stuff ) Creating and sharing a circuit python library Transition from arduino Circuit python essentials guide Youtube pybay 2019 circuitpython ( may be in recent newsletter ) Accelerating driver development with circuitpython - Bryan Siepert Adafruit register Join discord #help with circuitpython, #circuitpython ( more development ) revistaSG on twitter https://twitter.com/mesheryio/status/1317116337123098624 1:39:23 More sleepio API work 1:42:49 hibernate / sleep #2796 Light sleep - everything is still on, but cpu is not clocked 1:48:19 - sleep until alarm ( till someone presses a button ) #2795 Deep sleep / hibernate - turn power off to parts of the chip ( loose ram and cpu state ) 1:44:52 sleep until alarm 1:45:54 - out of stack space ( c-stack vs. python stack - maximum recursion limit ) 1:54:01 Deep Diving into shared bindings alarm/__init__.h Compare between microdev1 and tannewt’s further work https://github.com/microDev1/circuitpython/compare/sleepCPY...tannewt:sleepio 1:56:55 IMXRT1011 - what do the buttons do? ( pet peeve ) Start by thinking about how you are going to use it! Google docs spreadsheet MCU Sleep Alarms - deep sleep research E.g. can USB wake uProc from deep sleep 2:04:34 - SAM D5x/E5X Family Data Sheet Sleep Mode entry and exit table 2:10:01 Continued discussion of API design approaches 2:11:01 discussion of line 42 - flashing the error LED, and impact on power 2:12:45 gui library question - displayio - the core of the display work in CP FoamyGuy display layouts / json - https://github.com/FoamyGuy/circuitpython_display_layouts 2:15:09 Wrap up Visit the Adafruit shop online - http://www.adafruit.com ----------------------------------------- LIVE CHAT IS HERE! http://adafru.it/discord Adafruit on Instagram: https://www.instagram.com/adafruit Subscribe to Adafruit on YouTube: http://adafru.it/subscribe New tutorials on the Adafruit Learning System: http://learn.adafruit.com/ -----------------------------------------