Git Product home page Git Product logo

micropython_playground's People

Contributors

firedrow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

micropython_playground's Issues

Entire screen flashing on each update

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.

Crashed at 8pm

Watch quits updating the watchface at 19:59 every night.

[2rtc] Add DS3231 to codebase

@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.

Fix HTTPS requests

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.

Memory Allocation Error

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 ๐Ÿ’–)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.