Hi Jorgen,
Phew - couldn't seem to get my head around the rotations needed - think I probably should have gone for a new write to the buffer and use an `existing/ write a new scroll routine
![Sad :(](./images/smilies/icon_sad.gif)
All the displays are rotated 90degrees making life harder!
Still - got there in the end.....
So for you to (alpha) test. Note that I only have one of the led matrix like the one's you have - and it works on 1
To get it to work with the board plugged into the breadboard I needed swap x and y both set to true (ie chip end or 'in' is down - the PenAt routine likes it this way!). If you use other macros you might need to tweak things slightly. I powered the LEDs from the Arduino as per the tower clock - so get rid of the macros that set the pins to 1 and 0 in the test program if you are doing otherwise (and check the pins in the component.... & don't forget to set the number of digits to what you have (rather than 1))
Note also that there are a few limitations not found in the other component... Strings can be a maximum of 32 characters long (but no check is made) - as using only a byte for arithmetic. The display doesn't really scroll - the string moves, if that makes sense - so that when a new A..Z starts the 'Z' left on the display is overwritten rather than gliding off to the left..
ScrollStr2 - Scrolls the string from the right of the display until the final character is displayed. Uses -
StringAt - which could be used to scroll the string right as well.
If there was interest - I'd like to rewrite to handle bigger / more complicated arrays of LED matrices (I like the 4 x 4 grid model) - however it would be difficult to generalise to either inline / rotated displays. (Possible but likely slower)
(But see next message too!)
I'd recommend the component in earlier message above UNLESS using the specific matrix devices that require a 90deg rotation.
I'm not sure why but with a 4 digit display I get occasional corruption (one display all set / stuck on) With 0 delay it is a lot (big lot) slower than before - and I get a 'speed up' at the start of a string - a delay minimises this effect.... Let me know how you get on!
Martin