Skip to content
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

number of ICs, config problem #6

Open
matitoprzechvj opened this issue Mar 5, 2024 · 5 comments
Open

number of ICs, config problem #6

matitoprzechvj opened this issue Mar 5, 2024 · 5 comments

Comments

@matitoprzechvj
Copy link

Hey, i am trying to make that digital clock, i have all segments already wired and set up. I'm using ws2812b leds which have 1 IC per 1 led, what number should i put here and in wled led count configuration to make it work? Every segment has strip containing 9 leds.

const int NUM_OF_SEGMENTS = 28; // Number of total segments the whole display contains.
----> const int ADDR_LEDS_PER_SEG = 9; // Number of addressable LEDs (ICs) per segment.
const int SEGS_PER_DIGIT = 7; // Number of segments that make up 1 digit.
const int NUM_DIGITS = 10; // Number of digits each 7 segment digit can display, 0-9.
-----> const int NUM_FIRST_LEDS = 9; // Number of first set of 3 addressable LEDs which are only used to set colours.

When im trying config as shown above only 3 segments and first strip that controlls the colours work

@matitoprzechvj
Copy link
Author

matitoprzechvj commented Mar 5, 2024

okey figured it out, i had to skip 6 first leds from first control strip, now i have different problem, digits are mirrored or reversed, for example when i manually set digits to 5 5 5 5 they are showing as 2 2 2 2 one way or another, but digits like 1 3 are displaying fine

@ProjectsWithRed
Copy link
Owner

ProjectsWithRed commented Mar 6, 2024 via email

@matitoprzechvj
Copy link
Author

in my case, its perfectly fine when it is laying cable side up, its showing number correctly and everything works, ofc i need to flip it so then the numbers are upside down, picture attached, is there anything i can do in the code to idk reverse it or mirror, or i need to re-wire everything?
431125315_331672456036560_7729020972663466990_n

@matitoprzechvj
Copy link
Author

Okay, re wired everything and now it works fine, thanks

@ProjectsWithRed
Copy link
Owner

That's amazing to hear! Good stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants