max7219 8 digits 7 segment display

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
mnfisher
Valued Contributor
Posts: 938
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 502 times

Re: max7219 8 digits 7 segment display

Post by mnfisher »

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?
Display DHT22.fcfx
(47.78 KiB) Downloaded 64 times
Martin

mnfisher
Valued Contributor
Posts: 938
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 502 times

Re: max7219 8 digits 7 segment display

Post by mnfisher »

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

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: max7219 8 digits 7 segment display

Post by BenR »

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.

Sergejs
Posts: 143
Joined: Tue Oct 19, 2021 9:31 am
Has thanked: 73 times
Been thanked: 5 times

Re: max7219 8 digits 7 segment display

Post by Sergejs »

BenR wrote:
Thu Jun 16, 2022 9:42 am
Hello,

Can you send us the AliExpress link?
Yes I can. It is next:
https://www.aliexpress.com/item/3281574 ... 1802HTEiuc

Sergejs
Posts: 143
Joined: Tue Oct 19, 2021 9:31 am
Has thanked: 73 times
Been thanked: 5 times

Re: max7219 8 digits 7 segment display

Post by Sergejs »

Sorry, how about solution for this?

Post Reply