ESP32-S3 Feather

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
jlaiosa
 
Posts: 56
Joined: Sun May 30, 2021 11:29 am

ESP32-S3 Feather

Post by jlaiosa »

I cannot get the following to work:

led = digitalio.DigitalInOut(board.LED)

or
i2c=boardI2c()

Am I using the wrong libraries/format?

Thanks,

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: ESP32-S3 Feather

Post by Franklin97355 »

Are you getting anything for output and what code are you trying to run? Are you loading the code to the Feather OK?

User avatar
jlaiosa
 
Posts: 56
Joined: Sun May 30, 2021 11:29 am

Re: ESP32-S3 Feather

Post by jlaiosa »

Yes. I am loading the code. I was just trying to run the I2C code.

User avatar
wildestpixel
 
Posts: 75
Joined: Wed Oct 23, 2019 1:14 am

Re: ESP32-S3 Feather

Post by wildestpixel »

A bit more detail would be great - what exact code you are running in context and what the errors are. I know the battery gauge IC has some issues as referenced in gut issues - are you trying to run S2 code on S3 for this and its not detected ?

User avatar
jlaiosa
 
Posts: 56
Joined: Sun May 30, 2021 11:29 am

Re: ESP32-S3 Feather

Post by jlaiosa »

I tried something simple:

Code: Select all

import board
import digitalio

led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT

button = digitalio.DigitalInOut(board.BUTTON)
button.switch_to_input(pull=digitalio.Pull.UP)

while True:
    if not button.value:
        led.value = True
    else:
        led.value = False
The error is no board.LED. And now I am getting no room left on device.

Thanks for the help.

User avatar
DJDevon3
 
Posts: 210
Joined: Wed Mar 06, 2019 11:02 am

Re: ESP32-S3 Feather

Post by DJDevon3 »

Try board.NEOPIXEL https://github.com/adafruit/Adafruit-Fe ... Pinout.pdf

The demo code you’re using was really meant for a circuit playground board that has a button for doing stuff with. On feathers the board.button is also used for reset or bootloader which could cause unwanted results if you try to remap it. Recommend you try the code without requiring a button press to activate the neopixel. Use something like if true or false to turn it on/off instead manually with code reloads.

Code: Select all

 import board
import digitalio

led = digitalio.DigitalInOut(board.NEOPIXEL)
led.direction = digitalio.Direction.OUTPUT

# Manually turn neopixel on/off with 0 or 1
PixelOn = 0

while True:
if PixelOn==0:
led.value = True
else:
led.value = False
I haven’t tested the code it’s just the general idea.

User avatar
neradoc
 
Posts: 542
Joined: Wed Apr 27, 2016 2:38 pm

Re: ESP32-S3 Feather

Post by neradoc »

Hi,
  • Can you tell us what exact board you are using ? There is more than one ESP32-S3 feather, please provide a link to the product page.
  • What version of Circuitpython is running on the board ? Please paste the full content of boot_out.txt.
  • Does the status LED (neopixel) light up purple, then blink yellow on boot ?
Please answer these questions so we know what's going on.
Your code is totally fine and should work as-is on a Feather ESP32-S3.
All Feathers have a board.LED, it is possible that you have a Circuitpython build for another board (like a QT PY, which don't have an LED). board.BUTTON can be used as a button on boards that have it, sometimes it's also the boot button, so it must not be pressed during boot, but that has pretty much nothing to do with your issue right now.

User avatar
jlaiosa
 
Posts: 56
Joined: Sun May 30, 2021 11:29 am

Re: ESP32-S3 Feather

Post by jlaiosa »

This is sample code I got off the Adafruit site, but it could be wrong.

The device I am using is Adafruit ESP32-S3 Feather with STEMMA QT / Qwiic - 8MB Flash No PSRAM
PRODUCT ID: 5323

Adafruit CircuitPython 7.3.0 on 2022-05-23; ESP32-S3-DevKitC-1-N8 with ESP32S3
Board ID:espressif_esp32s3_devkitc_1_n8

Thanks again for the help.

User avatar
neradoc
 
Posts: 542
Joined: Wed Apr 27, 2016 2:38 pm

Re: ESP32-S3 Feather

Post by neradoc »

Right, so that's the firmware for the DevkitC, with different pins and hardware.
You don't want that.

You want the UF2 for the Feather ESP32S3 no-PSRAM.
https://circuitpython.org/board/adafrui ... 3_nopsram/
The stable 7.3.2 should be ok, I think, but there's fixes for the S3 regularly due to the support of S3 being alpha.

User avatar
jlaiosa
 
Posts: 56
Joined: Sun May 30, 2021 11:29 am

Re: ESP32-S3 Feather

Post by jlaiosa »

Thank you so much. Can just copy the new uf file onto the drive on the desktop or is there a different procedure.

User avatar
neradoc
 
Posts: 542
Joined: Wed Apr 27, 2016 2:38 pm

Re: ESP32-S3 Feather

Post by neradoc »

You drop the file on the *BOOT drive when the board is in bootloader mode.
The same as when installing Circuitpython the first time.
https://learn.adafruit.com/adafruit-esp ... cuitpython

To put the board in UF2 bootloader mode you press reset then press it again when the status LED lights up (purple).
It's basically a "slow" double-click, but you use the LED to get the timing right.

User avatar
jlaiosa
 
Posts: 56
Joined: Sun May 30, 2021 11:29 am

Re: ESP32-S3 Feather

Post by jlaiosa »

I suspected that might be the problem. I have everything working. Thanks for all you your help.

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

Return to “Adafruit CircuitPython”