CircuitPython 8.0.0 Beta 6 Released!

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
danhalbert
 
Posts: 4654
Joined: Tue Aug 08, 2017 12:37 pm

CircuitPython 8.0.0 Beta 6 Released!

Post by danhalbert »

From the GitHub release page:

This is CircuitPython 8.0.0-beta.6, a beta release for 8.0.0. It is relatively stable, but there will be further additions, fixes, and changes before final release.

NOTE: The file for specifying startup values for WiFi, etc., is now called settings.toml instead of .env, and uses slightly different syntax. Use double quotes instead of single quotes. Further documentation is here.

WARNING: The flash partitioning for 2MB and 4MB flash ESP32 and ESP32-C3 boards has changed since 8.0.0-beta.2. When you load 8.0.0-beta.3 or later over beta.2 (or vice versa), on these boards, CIRCUITPY will be erased and reformatted.

WARNING: The flash partitioning for the Raspberry Pi Pico W has changed since 8.0.0-beta.1. When you load 8.0.0-beta.2 or later over beta.1 (or vice versa), on the Pico W, CIRCUITPY will be erased and reformatted.

Notable changes to 8.0.0 since 7.3.0
Functionality additions
  • Add WiFi workflow with browser-based device discovery, filesystem browsing, upload, download, file editing, serial/REPL connection (available on Espressif and Pi Pico W).
  • Add a one-line status bar, which displays connection status, last exception, and version on a terminal window title or on the top line of an attached display. Mu 1.2.0 and Thonny 4.0.x and later are able to suppress status bar information in the REPL output.
  • A settings.toml file in CIRCUITPY provides environment variable values. Some value names are read by CircuitPython to specify WiFi connection parameters, BLE name, and other startup values. But you can also use settings.toml to specify your own parameters for your programs. Values from settings.toml can be retrieved using os.getenv(). More details here.
  • WiFi functionality implemented on the Raspberry Pi Pico W.
  • Revised Espressif camera support, now available on ESP32, ESP32-S2, and ESP32-S3.
  • Bulk analog input: analogbufio (available only on RP2040 for now).
  • Pin state can be preserved during deep sleep (available only on Espressif for now).
  • Allow setting USB VID, PID, manufacturer, and product ids at runtime.
  • Enable collections.deque on most builds.
  • MP3Decoder and WaveFile can now take a filename instead of an open file.
  • AnalogIn values are full range from 0 to 65535, instead of having zeros on low-order bits.
  • In-place firmware update (dualbank) capability may be disabled in favor of a larger CIRCUITPY drive.
  • Add TileGrid.contains().
  • Add os.utime().
  • Add espulp module, for running programs on the ULP RISC-V co-processor Espressif chips.
  • Add memorymap module for general though limited access to various memory regions.
  • A serial "break" on the USB or UART REPL serial connection will cause a KeyboardInterrupt, like ctrl-C. The advantage over ctrl-C is that the break interrupts even if the input buffer is full.
  • Add hidden property to vectorio shapes.
  • Add native _pixelmap.PixelMap support, for speed.
  • Chained exceptions are now implemented.
  • Add VfsFat.readonly property.
Compatibility changes
  • PulseOut no longer accepts a PWMOut. Use a Pin instead.
  • Auto-brightness support in displayio and framebufferio has been removed. It was never implemented completely.
  • OneWire is only in onewireio, and is no longer in busio or bitbangio.
  • gamepadshift has been removed: use keypad.ShiftRegisterKeys instead.
  • Print out whole-number floats exactly and correctly.
  • Restored rainbowio and onewireio to a number of boards. Some boards still have rainbowio turned off for space reasons.
  • i2ctarget.I2CTarget is the new name for i2cperipheral.I2CPeripheral. Accept both for now. I2CPeripheral is deprecated and will be removed in 9.0.0.
  • Allow display.root_group to be set, instead of using display.show(). display.show() is deprecated and will be removed in 9.0.0.
  • The property supervisor.runtime.ble_workflow replaces supervisor.disable_ble_workflow().
  • The property supervisor.runtime.next_stack_limit replaces supervisor.set_next_stack_limit().
  • The property supervisor.runtime.rgb_status_brightness replaces supervisor.set_rgb_status_brightness().
Download from circuitpython.org
Firmware downloads are available from the downloads page on circuitpython.org. The site makes it easy to select the correct file and language for your board.

Installation
To install follow the instructions in the Welcome to CircuitPython! guide. To install the latest libraries, see this page in that guide.

Try the latest version of the Mu editor for creating and editing your CircuitPython programs and for easy access to the CircuitPython serial connection (the REPL).

Documentation
Documentation is available in readthedocs.io.

Port status
CircuitPython has a number of "ports" that are the core implementations for different microcontroller families. Stability varies on a per-port basis. As of this release, these ports are consider stable:
  • atmel-samd: Microchip SAMD21, SAMx5x
  • cxd56: Sony Spresense
  • espressif: Espressif ESP32-S2
  • nrf: Nordic nRF52840, nRF52833
  • raspberrypi: Raspberry Pi RP2040
  • stm: ST STM32F4 chip family
These ports are considered alpha and will have bugs and missing functionality:
  • broadcom: Raspberry Pi boards such as RPi 4, RPi Zero 2W
  • espressif: ESP32, ESP32-S3, ESP32-C3
  • litex: fomu
  • mimxrt10xx: NXP i.MX RT10xxx
  • stm: ST non-STM32F4 chip families
Changes since 8.0.0-beta.5
  • Fix errors in DEBUG=1 Cortex-M4 builds. #7368. Thanks @dhalbert.
  • Fix wifi.Authmode printing. #7349. Thanks @dhalbert.
  • Update network code to use gaierror consistently. #7344. Thanks @jepler.
  • Replace .env with settings.toml. Remove dotenv module. #7321. Thanks @jepler.
  • displayio: set in_group to false when removing a layer from a group. #7327. Thanks @pypewpew (@deshipu).
  • Add VfsFat.readonly property. #7317. Thanks @s-ol.
Fixes and enhancements
Port and board-specific changes
Broadcom
Espressif
  • Support for ULP co-processor by espulp and memorymap modules. Replaces coproc. #7359. Thanks @tannewt and thanks to @MicroDev1 for the original coproc module.
  • Make master_clock_pin optional for esp32_camera, to support boards with built-in clocks. #7355. Thanks @pypewpew (@deshipu).
i.MX
  • Fix i.MX builds by redoing pin reset logic. #7345. Thanks @dhalbert.
nRF
RP2040
SAMx
STM
Individual boards
  • BananaPi BPI-PicoW-S3: add status LED. #7315. Thanks @RetiredWizard.
  • CRCibernetica IdeaBoard: add frozen modules, change flash size. #7356. Thanks @CRCibernetica.
  • Invector Labs Challenger 840: update definition. #7331. Thanks @PontusO.
  • Raspberry Pi Pico: use on-board LED for status. #7362. Thanks @Neradoc.
  • Seeed XIAO nRF52840: add charge rate pin. #7320. Thanks @dhalbert and @PheebeUK.
Documentation changes
  • Remove MicroPython asyncio documentation; improve libraries page and links. #7324. Thanks @dhalbert.
Build and infrastructure changes
  • Fix unix build. #7364. Thanks @jepler.
  • Fix devcontainer (GitHub codespaces) support. #7350. Thanks @bablokb.
  • Revert update to protomatter library due to regression. #7353. Thanks @jepler.
  • Fix stub generation. #7341. Thanks @jepler.
  • Temporary fix for tj-actions/changed-files problem. #7329. Thanks @MicroDev1.
Translation additions and improvements
  • Thanks for translations:
    • @bergdahl (Swedish)
    • @wtuemura (Portugese - Brazil)
New boards since 8.0.0-beta.5
  • Invector Labs Challenger RP2040 SD/RTC. #7336. Thanks @PontusO.
Known issues Thanks
Thank you to all who used, tested, and contributed since 8.0.0-beta.4, including the contributors above, and many others on GitHub and Discord. Join us on the Discord chat to collaborate.

User avatar
TI545
 
Posts: 98
Joined: Tue Feb 27, 2018 5:25 pm

Re: CircuitPython 8.0.0 Beta 6 Released!

Post by TI545 »

OK, I just learned to add the .env dot-env file and now it's a settings.toml file. (and pyleap uses .env, is pyleap also changing?)

User avatar
danhalbert
 
Posts: 4654
Joined: Tue Aug 08, 2017 12:37 pm

Re: CircuitPython 8.0.0 Beta 6 Released!

Post by danhalbert »

pyleap does not look for .env itself; it depends on the setup on the board it's talking to. So use settings.toml for that as well.

User avatar
steve_s
 
Posts: 30
Joined: Fri Aug 10, 2012 4:31 pm

Re: CircuitPython 8.0.0 Beta 6 Released!

Post by steve_s »

New bug on ESP32-S3 related to deep sleep fix on 8.0.0 Beta 6. When I run the code shown below with the ESP32-S3 Feather NO PSRAM, connected to the USB for Power using MU, all works fine. Light Sleep and Deep Sleep perform as expected. When I run off of Battery Alone, then the feather goes into Light Sleep, followed by Deep Sleep (Both work fine on First Pass). On second and following passes then Light Sleep awakens after about 0.005 seconds and Deep Sleep awakens after 36 Seconds as expected. Somehow Awakening from Deep Sleep seems to interfere with Light Sleep now.

Adafruit CircuitPython 8.0.0-beta.6 on 2022-12-21; Adafruit Feather ESP32S3 No PSRAM with ESP32S3
>>>
When Working
Entering Light sleep for 15 seconds at 4.012
Entering Light sleep for 15 seconds at 21.819
Entering deep sleep for 36 seconds at 36.819
Entering Light sleep for 15 seconds at 4.012
Entering deep sleep for 36 seconds at 19.013

When Not Working
Entering Light sleep for 15 seconds at 2.514
Entering deep sleep for 36 seconds at 2.519
Entering Light sleep for 15 seconds at 2.514
Entering deep sleep for 36 seconds at 2.519
Entering Light sleep for 15 seconds at 2.514

Code: Select all

import digitalio
import board
import alarm
import time

uart = board.UART()
uart.baudrate = 115200

led = digitalio.DigitalInOut(board.LED)
led.switch_to_output(True)
time.sleep(2)
led.value = False
msg = "Alarm was " + str(alarm.wake_alarm) + "\r\n"
print(msg, end="")
# uart.write(msg.encode("utf-8"))

while True:

    time_alarm = alarm.time.TimeAlarm(monotonic_time=time.monotonic() + 15)

    msg = "Entering Light sleep for 15 seconds at " + str(time.monotonic()) + "\r\n"
    print(msg, end="")
    uart.write(msg.encode("utf-8"))
    # local_pin_alarm_command = alarm.pin.PinAlarm(
    #    pin=board.D6, value=False, edge=False, pull=False)
    # alarm.light_sleep_until_alarms(time_alarm, local_pin_alarm_command)
    alarm.light_sleep_until_alarms(time_alarm)
    print("Awoke from light sleep, now deep sleep")

    time_alarm = alarm.time.TimeAlarm(monotonic_time=time.monotonic() + 36)

    msg = "Entering deep sleep for 36 seconds at " + str(time.monotonic()) + "\r\n"
    print(msg, end="")
    uart.write(msg.encode("utf-8"))

    alarm.exit_and_deep_sleep_until_alarms(time_alarm)


User avatar
danhalbert
 
Posts: 4654
Joined: Tue Aug 08, 2017 12:37 pm

Re: CircuitPython 8.0.0 Beta 6 Released!

Post by danhalbert »

Thanks for the report! Could you post this as an issue in https://github.com/adafruit/circuitpython ?

User avatar
cgn1234
 
Posts: 2
Joined: Fri Nov 12, 2021 12:52 pm

Re: CircuitPython 8.0.0 Beta 6 Released!

Post by cgn1234 »

I'm trying to get this working on a Pico W, but after installing it, it thinks the wifi module isn't installed.

The file I down loaded is named: adafruit-circuitpython-raspberry_pi_pico_w-en_US-8.0.0-beta.6.uf2

Which says pico w, so I assume I have the correct version.

Thanks,
/Chris

User avatar
danhalbert
 
Posts: 4654
Joined: Tue Aug 08, 2017 12:37 pm

Re: CircuitPython 8.0.0 Beta 6 Released!

Post by danhalbert »

I just put beta.6 on a Pico W, and see the `wifi` module when I try in the REPL:

Code: Select all

Adafruit CircuitPython 8.0.0-beta.6 on 2022-12-21; Raspberry Pi Pico W with rp2040
>>> import wifi
>>>
Make sure the version is correct when you start up the REPL. Or you can look it in the BOOT_OUT.TXT file for the version as well.

User avatar
cgn1234
 
Posts: 2
Joined: Fri Nov 12, 2021 12:52 pm

Re: CircuitPython 8.0.0 Beta 6 Released!

Post by cgn1234 »

I was using Thonny. Switched to Mu Editor and it's working.

Thanks for your help.

/Chris

User avatar
danhalbert
 
Posts: 4654
Joined: Tue Aug 08, 2017 12:37 pm

Re: CircuitPython 8.0.0 Beta 6 Released!

Post by danhalbert »

Glad you got it working. I think perhaps with Thonny you were not set to CircuitPython mode and were trying to do `import WiFi` in regular desktop Python.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”