Close

Where I am holding now

A project log for Open watch

The Open Watch is a project to develop a watch that is completely configurable, hardware and software.

lazercoh3nLazer.Coh3n 04/10/2020 at 13:330 Comments

The big issue I am working on at the moment is the menu class.
The device is currently using 3 momentary tactile switches, one for entering a given menu and  then, while in the menu that button  acts as a select button. The other 2 buttons are for scrolling up and down.
My idea is to have a class that creates an instance of a new customizable menu. For example if someone wants to create there own menu for a function that they have added, say for an IR transceiver,  the developer can create there menu using this class and it will automatically add this new menu as a branch to the existing  main menu. That way all the sub-menu's  are branches of the main menu and the developer will just have to define the sub-menu argument's and menu functionality.

A part of the problem is that I am using interrupts on my input buttons. The micro-python firmware doesn't handle interrupts as well as I would have liked in that the function that is called can take only one argument, and that argument must be the Pin instance that triggered the interrupt. This drawback made some issues for me in handling the interrupts and I might even give up on using interrupts entirely.

I am also just starting to work on adding the DS3231 RTC module being that the esp8266  internal RTC is not very accurate (check out where it says "known issues " in the link)

Discussions