Search found 11 matches
- Sat Mar 06, 2021 10:46 pm
- Forum: Hardware Projects
- Topic: Monitor ring light
- Replies: 0
- Views: 11774
Monitor ring light
Hi! I just shared a simple and small project on Github. I hope it can be useful for someone. Monitor Ring Light - A custom ring light around a monitor, providing uniform lighting and custom color toning for video recordings and video meetings. Made with RGB LED Pixels (WS2801), ESP32, MicroPython an...
- Sat Mar 06, 2021 10:43 pm
- Forum: MicroPython pyboard
- Topic: pboard controlling WS2801 ledstrip over SPI
- Replies: 3
- Views: 6883
Re: pboard controlling WS2801 ledstrip over SPI
Thanks for the code, razanur! I hope you don't mind me using and sharing your code (with credits) on a small project. If anyone is interested, you can see the PC and ESP32 code on Github: https://raw.githubusercontent.com/AltoRetrato/monitor-ring-light/main/images/monitor_ring_light.jpg Monitor Ring...
- Tue Feb 02, 2021 2:04 am
- Forum: ESP32 boards
- Topic: Filesystem corruption
- Replies: 2
- Views: 1818
Re: Filesystem corruption
Hi there! I did something similar a while ago, but writing the data in the filesystem instead of sending it to a server. It worked fine, but sometimes when power was lost the littleFS filesystem got corrupted... Is your code writing anything to the filesystem? If it is, is it closing the file(s) bef...
- Mon Jun 22, 2020 9:46 pm
- Forum: General Discussion and Questions
- Topic: "Empty" TypeError
- Replies: 5
- Views: 3006
Re: "Empty" TypeError
True! It is a bigger workaround, though, but one to keep in mind. Thanks!
- Mon Jun 22, 2020 9:10 pm
- Forum: General Discussion and Questions
- Topic: "Empty" TypeError
- Replies: 5
- Views: 3006
- Mon Jun 22, 2020 6:46 pm
- Forum: General Discussion and Questions
- Topic: "Empty" TypeError
- Replies: 5
- Views: 3006
Re: "Empty" TypeError
Oddly enough, this code works on MicroPython:
The result is, as expected:
Now I'm using something like this as a workaround, but I wonder if this issue is a bug in MicroPython...
Code: Select all
class Cfg(dict):
pass
cfg = Cfg()
cfg.update({"rate": 30})
print(cfg)
Code: Select all
{'rate': 30}
- Mon Jun 22, 2020 4:10 pm
- Forum: General Discussion and Questions
- Topic: "Empty" TypeError
- Replies: 5
- Views: 3006
"Empty" TypeError
Hi there! The code below runs fine on CPython (versions 2.7.16, 3.4.10, 3.7.0, ...), but produces a "TypeError" on MicroPython (ESP32 firmware esp32-idf3-20200618-unstable-v1.12-554-gce02d5e34): class Cfg(dict): def __init__(self, default={}): self.update(default) cfg = Cfg(default={"rate": 30}) pri...
- Thu Jun 18, 2020 5:39 pm
- Forum: General Discussion and Questions
- Topic: littlefs - advantages & disadvantages
- Replies: 33
- Views: 30009
Re: littlefs - advantages & disadvantages
I lost my LittleFS partition. It seems it isn't resilient to power failure after all, at least on the ESP32 with firmware esp32-idf3-20200509-unstable-v1.12-447-gab4e19770. Everything was working fine for a few days, including powering the system up and down several times. Today I disconnected the p...
- Tue May 12, 2020 5:16 pm
- Forum: General Discussion and Questions
- Topic: Flash file system best practices (or: how to not destroy the flash / NVS by logging data)
- Replies: 4
- Views: 3756
Re: Flash file system best practices (or: how to not destroy the flash / NVS by logging data)
Thank you all for your information and tips!
- Tue Apr 21, 2020 8:42 pm
- Forum: General Discussion and Questions
- Topic: Flash file system best practices (or: how to not destroy the flash / NVS by logging data)
- Replies: 4
- Views: 3756
Flash file system best practices (or: how to not destroy the flash / NVS by logging data)
Hi! I'm about to write a simple humidity / temperature logger using an ESP32. Sensor data will be collected at least once per minute, and the device should run 24/7, for several days, powered by a phone charger. There is no Wi-Fi nearby most of the time, so I have to store data at least momentarily ...