Re: Martin Fisher great component Max7219_v2 a question Solved.
Posted: Fri Mar 07, 2025 7:56 pm
Just tested and seems to compile okay.
What target are you using - Arduino?
In the component properties - you need to set the SPI pins - including CS - the MAX7219 just uses clock and MOSI - but I didn't manage to find how to use an 'empty pin' - so make sure that the CLK and MOSI are selected correctly. MISO should be B4 and CS should be B2 to use hardware SPI (for speed!) )if you are using Arduino Uno or Nano / ATMega328p) - there is an issue with Arduino SPI CS - PB2 (D10) must be set as an output for hardware SPI to work. If you use software mode then you can choose pins as suit. Set a prescale - as far as I remember any speed will work - but try 'say' 1/16 as an initial test.
Need to call InitialiseLED then try calling Demo as a test that all is working as should be.
Martin
What target are you using - Arduino?
In the component properties - you need to set the SPI pins - including CS - the MAX7219 just uses clock and MOSI - but I didn't manage to find how to use an 'empty pin' - so make sure that the CLK and MOSI are selected correctly. MISO should be B4 and CS should be B2 to use hardware SPI (for speed!) )if you are using Arduino Uno or Nano / ATMega328p) - there is an issue with Arduino SPI CS - PB2 (D10) must be set as an output for hardware SPI to work. If you use software mode then you can choose pins as suit. Set a prescale - as far as I remember any speed will work - but try 'say' 1/16 as an initial test.
Need to call InitialiseLED then try calling Demo as a test that all is working as should be.
Martin