watchy-community / micropython_playground Goto Github PK
View Code? Open in Web Editor NEWTesting MicroPython with Watchy ESP32 hardware.
License: Other
Testing MicroPython with Watchy ESP32 hardware.
License: Other
Each time something change on the face, the entire screen is flashing in order to update.
Would be great if what need to be updated, update alone without the entire screen flashing.
I tried different watchyfaces made in C and those don't have this behaviour.
Watch quits updating the watchface at 19:59 every night.
@Dexdev08 wanted to load this watchface into his Watchy, but he ran into the ENODEV error. I originally ran into the same error when I tried to load Hueyy's Watchface.
The problem ended up being Hueyy's code, using the DS3231 RTC, is meant for the Watchy v1 and I had a v2. Dexdev08 has a Watchy v1 as well, but I had implemented the PCF8568 RTC.
I would like to work toward refactoring both the ds3231 and pcf8568 libraries so the method names match (or at least the public facing methods we use match) and the outputs of those methods match, so we could make them interchangeable to end users.
At this time, I'm using a config.py
variable named WATCHY_VERSION
to control this. I'm open to other suggestions, especially something the user doesn't have to touch.
I recently upgraded the MicroPython version from 1.19 to 1.21.0. After adjusting module names (1.21.0 changes from u-modules to straight names, ie ujson to json) and cross-compiling libraries and font assets using mpy-cross
, I noticed the Weather Update kept aborting and/or erroring out. After some troubleshooting I did notice that the NTP request was still working, so the requests
module name change isn't what broke. Upon further testing, I narrowed it down that HTTP sites loaded fine, but HTTPS sites were aborted.
This is where I am stuck.
Change from every 4 hours to once per day to conserve battery.
Thanks for this repository, I now have Watchy with micropython.
I was wondering if there is a specific firmware to choose because when I followed the first link to the community wiki I ended up to download from the advised link.
Which means I got v1.19.1 firmware.
I then downloaded the upload folder content and when I boot my Watchy, I have the following error:
Traceback (most recent call last):
File "main.py", line 15, in <module>
File "uasyncio/core.py", line 1, in run
File "uasyncio/core.py", line 1, in run_until_complete
File "uasyncio/core.py", line 1, in run_until_complete
File "main.py", line 12, in main
File "src/watchy.py", line 75, in __init__
File "lib/display.py", line 55, in __init__
MemoryError: memory allocation failed, allocating 5000 bytes
MicroPython v1.19.1 on 2022-06-18; ESP32 module with ESP32
Type "help()" for more information.
>>> ```
Any idea on what I can try?
(but once more, thanks for the work done ๐)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.