mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2026-04-26 00:05:55 +03:00
[GH-ISSUE #1385] Clock Doesn't Refresh #711
Labels
No labels
best of
bug
development
discussion
documentation
duplicate
feature request
help wanted
help wanted
improvement
pinned
pull-request
question
stale
translation
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/esp8266_deauther#711
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zurpv1 on GitHub (Jan 22, 2021).
Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/1385
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 ------------------------------>> \
// <<------------------------------------------------------------------------------->> \
@Nikakz commented on GitHub (Jan 22, 2021):
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.
@Nikakz commented on GitHub (Jan 23, 2021):
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
@zurpv1 commented on GitHub (Jan 23, 2021):
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.
@spacehuhn commented on GitHub (Jan 23, 2021):
Thank you for your help. Just pushed some changes based on your reports and suggestions.
@zurpv1 commented on GitHub (Jan 23, 2021):
Spacehuhn, thank you for all of your hard work. Can't wait to try it out! Take care.
@zurpv1 commented on GitHub (Jan 25, 2021):
The clock is working great. Thank you!