Hi guys,
I'm new to arduino. Only previous coding experience is css, html and a bit of php.
I'm building a word clock. I've successfully built a circuit, using a pro mini and two Max7219 with a DS3231 RTC.
My LED matrix is 6x17 (102 LEDs). The problem is addressing the matrix easily.
I've drawn my matrix (in paint, sorry at work presently).
It's divided in two. One matrix of 6 rows x 8 columns.
The other matrix has 6 rows x 9 columns - its wired with the same 6 rows x 8 columns with the 9th 'column' being wired as a 7th row.
All the LEDs light up fine. I can get text to scroll across both matrixes ok, but of course the code doesn't know I've got my LEDs laid out as 6x17, as far as it's concerned it's 2x8x8. So the 9th column is lit up as if it were the 7th row. All expected behaviour.
The problem is I can't work out how to remap / readdress the matrix or commands.
using Ledcontrol library.
I'd like to remap the matrix so that I can address it in 6 rows of 17 (makes most sense to me). e.g. SetLed (1,15).
I've spent hours googling and looking through this forum without a solution. I've found references to being able to have an irregular shaped / sized matrix that you just address differently via code, but can't find any code to actually do this.
It seems logically quite simple that I should be able to make up an address table such that:
e.g. LED (1,3) corresponds to LED (0,0,2)
e.g. LED (4,12) corresponds to LED (1,3,4)
With my clock I want to be able to:
Similar to: Arduino WordClock - Exhibition / Gallery - Arduino Forum
Display the time (via the letters on the faceplate)
Display temp (make large digits with combination of leds)
Scroll text.
Any help is much appreciated.