Thanks Ben,
Yes - I used pin 10 as CS - but still sometimes nothing in hardware mode
For fun - I added a SlideIn(str) - which slides in a string (it's a number but can also have - E,H, P, L or a space - note that the decimal point needs to be preceded by a digit) - I'm still just using the BCD display. This means it can 'slide in' HELLO... (0 slides in then L then L etc.)
Then I added a DHT22 and I 'SlideIn' the temperature and humidity on a 5s cycle. I was tempted to add a DS3231 and add the time too.
I modified DispNumberStr to be able to display the string at any position - so a scroll in would be easy... DispDigitBCD now takes an ASCII char (0..9,-,E,H,P,L or ' ')
Any one any ideas - there a lot less fun transitions (probably) - but I thought a SlideOut would be good too?
Martin
max7219 8 digits 7 segment display
-
- Valued Contributor
- Posts: 1133
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 114 times
- Been thanked: 596 times
-
- Valued Contributor
- Posts: 1133
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 114 times
- Been thanked: 596 times
Re: max7219 8 digits 7 segment display
Just had a flash of inspiration - and hardware SPI is up and running.
I just added a Master_Disable_CS before the Master_Init and away it went. Odd - I always thought that using b2 as the CS pin was sufficient.
Martin
I just added a Master_Disable_CS before the Master_Init and away it went. Odd - I always thought that using b2 as the CS pin was sufficient.
Martin
-
- Matrix Staff
- Posts: 1882
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 484 times
- Been thanked: 661 times
Re: max7219 8 digits 7 segment display
Aha well done, yes that is suprising but good to know.
I can maybe add that into the SPI CAL component so it does that for you before initialising the SPI.
I can maybe add that into the SPI CAL component so it does that for you before initialising the SPI.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel