-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solarTimeRTC.ino example prints times without zero padding #9
Comments
Requires some thought about how to handle this. |
Here's a solar tracker simulation with text-based 0 padding and steppers: https://wokwi.com/projects/362461186756144129 And without the zero padding on the times: |
It isn't that I don't understand the issue. I want to have an overview of all the code before just patching it. |
This is just an example and it's up to the programmer to interpret the data. |
I realize it's a nit-picking little thing. Feel free to close with a "won't fix" because the fault lies with Arduino's lack of a I like your library, and am going to use it to build a tracker with steppers like the Wokwi simulation. Thanks. |
I'm planning to re-write the example using the JeeLabs/Adafruit RTC library because it has a built in function for formatted text output. |
The solarTimeRTC example is missing leading zeros on the time elements, and could print ugly times like:
SolarPosition/examples/solarTimeRTC/solarTimeRTC.ino
Lines 80 to 92 in ba19df4
A few lines like this would solve it:
Here's a configured simulation:
https://wokwi.com/projects/362382128060882945
The text was updated successfully, but these errors were encountered: