Open zurpv1 opened 3 years ago
Hello, complicated these codes when we are starting. I solved my problem with Led Neopixel, but now I face problems with the screen where there are boring strokes under the word scan in the menu and I can't solve it, it happened after I had to invert the screen, because it was wrong here for me. I don't know how to solve this. I hope you can solve your problem.
You saw in DisplayUi.cpp:
bool h12;
bool PM_time;
clock.setClockMode (true);
clockHour = clock.getHour (h12, PM_time);
clockMinute = clock.getMinute ();
clockHour = random (12);
clockMinute = random (60);
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Where clock.setClockMode (false) for put (true)??? in my configuration say false and I put true
You saw in DisplayUi.cpp:
ifdef RTC_DS3231
bool h12; bool PM_time; clock.setClockMode (true); clockHour = clock.getHour (h12, PM_time); clockMinute = clock.getMinute ();
else
clockHour = random (12); clockMinute = random (60); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Where clock.setClockMode (false) for put (true)??? in my configuration say false and I put true
Yes, I saw that. I had tried using it initially. The setClockMode is for 12/24 modes.
I believe the reason the clock doesn't refresh is because the program is set to only .update at startup, reset, and, scan. I came to this conclusion by looking at void loop in the .ino file. My best guess at this time.
I am hoping one of the developers fixes this soon. I am sure this is an easy fix if you know what you are doing. lol.
Thank you for your help. Just pushed some changes based on your reports and suggestions.
Thank you for your help. Just pushed some changes based on your reports and suggestions.
Spacehuhn, thank you for all of your hard work. Can't wait to try it out! Take care.
The clock is working great. Thank you!
Describe the bug The clock doesn't refresh once the watch is on. The only way it refreshes is when the watch is turned off and back on or when flashed with firmware.
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the time to refresh Screenshots NA
Environment (please complete the following information):
Additional context I have tried editing the code for the past 3 days without any success. As stated I am unable to get the clock to refresh at all. I tried to edit the drawClock()
void DisplayUI::drawClock() {
}
I created a separate function and added clockSeconds to this new function. I tried adding a loop and display.clear() with no success. I think I am hitting a wall because I don't understand the nesting of the voids.
// <<---------------------------- Added 1-22-2021 ------------------------>> \
void DisplayUI::drawClockDisplay() {
}
// <<----------------------------------------------------------------------->> \
I did have success in creating a Clock sub menu and divided the original Clock to: Clock Display and Clock Time Set. This works better for me since I don't have to worry about accidentally changing the time when viewing the Clock Display option.
// <<----------------------------- Added 1-21-2021 ------------------------------>> \
// <<------------------------------------------------------------------------------->> \