Hello,
I try to reproduce a pong clock inspired by this blog ahttps://123led.wordpress.com/about/ . I personally used the following matrix 16x24 Red LED Matrix Panel - Chainable HT1632C Driver : ID 555 : $24.95 : Adafruit Industries, Unique & fun DIY electronics and kits
But when I use the given code all the small 8*8 matrices are not in the right direction and not in the right place. Would you have a solution ?
This men point a solution but it doesn't work for me https://123led.wordpress.com/about/#comment-33649
Thank you in advance.
Sounds like upside down connectors.
Try this Adafruit site, especially the wiring section (second page link).
I plug it well but still doesn't work.
Do you know how i can rotate each little 8*8 matrix by 90 degrre it will help a lot
This one?
if (x >= 0 && x = 0 && y = 0 && x = 8 && y = 8 && x = 8 && y = 8 && x = 0 && y = 16 && x = 0 && y = 24 && x = 0 && y = 32 && x = 0 && y = 40 && x = 0 && y = 16 && x = 8 && y = 24 && x = 8 && y = 32 && x = 8 && y = 40 && x = 8 && y <= 15) {
int a;
a=x;
x=y+32;
y=a-32;
}
It's clearly incorrect. The if() condition can never be true. Maybe the author tried to type it from memory and made errors, instead of copy & pasting it from tested working code.
You should share the code you are using in your next post (please use the "CODE" button before you paste your code in).
Also post some photos showing some good examples of how the matrixes are wrong.
The "solution" at 123led is NOT a solution. It is not even close to correct syntax (what the computer understands). The "comments" section are full of this project NOT working.
I would suggest:
- find a working "pong clock" that fits your hardware, or
- get the exact hardware.
- Maybe the best choice would be to FIND how to re-wire your 8x8.
If you want to continue with what you have...
... and this "90 degrees" is the only problem, then ... each LED in the 8x8 LED matrix has a ROW and a COLUMN.
C0R0 C1R0 C2R0 C3R0 C4R0 C5R0 C6R0 C7R0
C0R1 .... .... .... .... .... .... ....
C0R2 .... .... .... .... .... .... ....
C0R3 .... .... .... .... .... .... ....
C0R4 .... .... .... .... .... .... ....
C0R5 .... .... .... .... .... .... ....
C0R6 .... .... .... .... .... .... ....
C0R7 .... .... .... .... .... .... C7R7
You would need to move C0R0 "anti-clockwise" to C0R7, which would mean keeping the COLUMN the same, but increasing the ROW by 7. This will be slightly different for every LED, but you will see the pattern...
The LEDs across the top row (R0):
C0R0 will become C0R7 - so C minus 0, R plus 7
C1R0 will become C0R6 - so C-1, R+6 (C decreases by 1, R increases by 7-C)
C2R0 will become C0R5 - so C-2, R+5 (C decreases by 1, R increases by 7-C)
C3R0 will become C0R4 - so C-3, R+4 (C decreases by 1, R increases by 7-C)
C4R0 will become C0R3 - so C-4, R+3 ...
C5R0 will become C0R2 - so C-5, R+2 ...
C6R0 will become C0R1 - so C-6, R+1 ...
C7R0 will become C0R0 - so C-7, R+0 ...
You see the pattern... which will be slightly different for Row 1, 2, 3, 4, 5, 6, and 7.
Now... how to write that code, and where to put that code...
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.