My ESP32 is currently connected to a AHT20 and a AM2320, both of them are temp and humidity sensors, I want to collect the data from the sensor and save them into a csv file inside the Feather. Though it seems like ESP32-s2 is in a "Read-only mode" and I don't know how to exit that and be able to create a csv file and append the sensor data into that file.
I have a boot.py include at the same root folder with code.py in the Feather and I have pin 9 grounded, this trick did work with Feather M4, I successfully had data out last time doing this.
Attempt to write sensor data into ESP32-s2
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Ezyh
- Posts: 8
- Joined: Wed May 31, 2023 4:21 pm
Attempt to write sensor data into ESP32-s2
- Attachments
-
- 2023-05-31 16-32.jpeg (618.57 KiB) Viewed 57 times
- dastels
- Posts: 15699
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Attempt to write sensor data into ESP32-s2
You should delete the last line in boot.py:
Other than that it looks fine... as long as D9 is the pin you are using to switch the RO status.
Dave
Code: Select all
● Save this as boot.py on your Feather
Dave
- Ezyh
- Posts: 8
- Joined: Wed May 31, 2023 4:21 pm
Re: Attempt to write sensor data into ESP32-s2
Thanks, it works!
Please be positive and constructive with your questions and comments.