CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Library max7219

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ricardo



Joined: 11 May 2023
Posts: 1

View user's profile Send private message

Library max7219
PostPosted: Thu May 11, 2023 3:15 pm     Reply with quote

Hello people, what driver can I use for Max7219, so that the decimal point can be placed in a 7-segment display ? Thank you.
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Sat May 13, 2023 10:23 am     Reply with quote

Seriously, just talk to it.

It is just an SPI driven LED display. You just send a 16bit word on the SPI
interface, for each digit. This can be sent as BCD, or as raw bit data for
each digit. Addresses 1 to 8 are the seven digits, then address 9 sets
whether these are treated as raw data or BCD. address 10 sets the
intensity. Address 11 sets how many digits it is to scan.
The address is sent in the low 4 bits of the upper byte of the 16bit word.
The data in the low 8bits. Bit D7 is the decimal in both BCD and direct
drive mode.
It is just basic programming. Why do people just not get on and drive things
themselves, rather than assuming someone else will have already done this
basic programming for them?.
It is a matter of probably less than half an hours work to write the code
to control this. The hardest part will be finding what current level your
display wants, which would still have to be done using any 'driver'.
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun May 14, 2023 5:03 am     Reply with quote

Mr T, I call it TTS. Two Thumb Syndrome.
There's an entire generation, or two, that have had the benefit of the Internet and very, very cheap computers (desktop, laptops, smart devices). It seems 'everything' is available on the net..
I doubt that a handful of students,hobbyists or techs have actually wire-wrapped a project or cut assembler,let alone toggle in RIM loaders....
You can build a 'project' from 'modules' these days,or buy what you want premade from China. heck, I needed a simple volt/amp meter to upgrade my 40 year old battery charger. Old school, I'd get a PIC, some resistors, LEDs, do math, maybe etch a PCB, test, modify, then it'd be done. Just bought a complete 'module'. ATMEL based, ground current sensing volts/ammeter with precut wires in a snapin bezel about 1x2" for $2 Canadian ! NO taxes, NO shipping fees, just two dollars (price of a coffee) There's no way I can buy 6 7ssd, micro, support parts, pcb, case for that ! Heck the case alone would be $10 !!

sigh, I'm just a soon to be 70 year old 'dinosaur'.....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group