Coder Social home page Coder Social logo

Setting time with buttons about vfd_watch HOT 4 CLOSED

 avatar commented on August 18, 2024
Setting time with buttons

from vfd_watch.

Comments (4)

Pakue95 avatar Pakue95 commented on August 18, 2024

Hey Ollie,

Thank!

I use the ESP32 internal system time, which is set via NTP, to track the time. You can set is manually if you want with settimeofday() or use a library like this one.
Here is where the time is set and written to the display if you want to have a go at it.

I might be able to implement something over the weekend to set the time with the buttons.

from vfd_watch.

 avatar commented on August 18, 2024

Thankyou that would be interesting to see! i dont know C++ yet so i wouldn't even know to start. but i basically started to write the software again in python as a learning exercise.
I saw there were some python files in the code folder but it was just an empty file. any reason for this? or was it ssomething you were going to work on?

from vfd_watch.

Pakue95 avatar Pakue95 commented on August 18, 2024

I added a bit of code to set the time with the buttons once the wifi connection fails for a few seconds. Left/Right -> up/down; middle -> set the minutes/finish.

I created the python folder for playing around with MicroPython, but never pushed the code due to some bug with mapping I2C to the pins I had chosen.

from vfd_watch.

 avatar commented on August 18, 2024

Okay nice, I'll have a look. I actually got it working with micropython today but the i2c does seem a little slow to update I'm not sure why but it might be the library I'm using.

from vfd_watch.

Related Issues (2)

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.