-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Added Digital Clock overlay option for 7-segment style clocks #1873
Conversation
I really like the compactness of your code. If you look at my fork it took me many many lines of code to do this. And i did not use the overlay function but created an effect for it. I like it! I'm gonna test this later today ;) |
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. |
I just stumbled across this and love it! Great blog post on how to use it, because I was originally thinking it was a binary clock or something. |
Thank you Aircoookie For everything |
@loverboyritesh That can be accomplished with two easy code changes:
Since there is significant interest for this feature and I really like the approach of the code implementing this as an overlay in this PR, I think I'll rewrite this to be added as a usermod (even though there are at least 2 other 7-segment usermods). |
I'm pretty sure this is now covered by https://github.com/Aircoookie/WLED/tree/main/usermods/seven_segment_display_reloaded, so I will close this PR. |
With The new 0.14.0 Everything is possible , with usermods, with segments and Also with DDP and art-net without any physical connection , and not just analogue and 7-seg Clock, Scrolling matrix clock and many others, and also possibility to enable multi-usermods .... All thanks to Aircoookie... Its like a dream come true Matrix and Digiclocks. |
I am trying to make the same same thing and I do feel that I can get it to work as a clock. But I also want it to work as a 2D Matrix so that I can display effects on it as if it was a two dimensional display. I am planning to put LED strips in all the sections of the 3D printed design for the effects. This person has made it with a complete custom software, and it looks glorious!!! I want to make this, with WLED. The problem is that 2D Matrix requires the LEDs to be in sequential rows, like row number 1, row number 2, row number 3. Basically this will be the vertical segments but we will make WLED software think that it's a matrix with a d's absent in those positions does it will let us display effects This may or may not me the best way to do it please do let me know I am in process of 3D printing the parts right now, so I have not tested the code yet using the seven segment usermod. Please let me know if this functionality is already implemented. |
Bro its complicated . even though you manage to get it working the effects will not be so effective because of the missing leds in matrix setup . even in linear strip you can get awesome effects considering it continuous strip if you group leds in a single segment to create 7 virtual leds per digit... and that too you have not mentioned how many leds you are using per segment of SSD. lets assume that you are making exact of the links you provided then also your calculations are wrong i feel , 1 row - top segments [ generally 'A' may be different in you case] of all digits. 2 row 1 led 7 gap {you said 9] 1led 7gap and so on . even in top row you should consider that 1 led is missing after each 7 leds .... that means 1gap 7leds 1gap 7leds so on ... Assuming 7 leds per segment of SSD and gaps [missing leds] as 0 and real leds as 1. 011111110111111101111111011111110111111101111111011111110 so this this would be probably your setup as matrix . only thing is the connection and data line is messed up , again that wouldnt be a problem coz pixels can be mapped and gapped using led.json [see documentation] , but would need high amount of calculation as to map which led to which position of the strip , WLED is a universe in itself , to play around and experiment , dont hesitate to build the hardware part thinking that some thing might go wrong .. everything can be solved from the programme it-self .. or i would suggest to just create a crude setup just with strips and experiment yourself ... or just go for the linear strip effects grouping 7 leds as 1 virtual led as mentioned earlier, these effects also wont let you down. |
Please use WLED forum or Discord for help and support questions. |
Hi, I've taken the changes made in PR#995 for what concern the UI and html side and then I added my code for driving 7-Segment style Digital Clock.
This implementation can be customized in order to meet different configurations in terms of number of led per segment, number of led per dots and how they are arranged.
Detailed description of the code can be found here
Hope you enjoy it!