Python Forum
Python code a Max7219/7221 7 segment driver
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python code a Max7219/7221 7 segment driver
#3
Yes, I have searched for some examples of python code and have not found anything. I have been referencing the MAX7219 datasheet. I am using a digital scope and looking at the data and everything look great.


The MAX7219 uses a 16 bit word.
The format is bits 15-12 ignored, bits 11-8 is the 4 bit command code.
Bits 7-4 are ignored and bits 3-0 contain the code for the data to be displayed where a value of 0-9 in bits 3-0 represent displaying characters 0 to 9 on the 7 segment display.

Before writing data, I set the Intensity level, set normal operation on the MAX7219, set the number of digits to scan, turn test state off and set the 7 segment decode.

Also, SPI documentation is so spotty and I find conflicting writeups on using SPI.
Everything on the scope looks great, but no display.
Reply


Messages In This Thread
RE: Python code a Max7219/7221 7 segment driver - by Aggie64 - Nov-20-2022, 11:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,239 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  Stepper motor/Easy Driver/HELP Harney 1 1,913 Jul-31-2021, 08:05 AM
Last Post: Harney
Photo Raspberry PI writing to RS485 driver, DIR pin not holding state zazas321 2 2,149 Oct-30-2020, 06:23 AM
Last Post: zazas321
  How to extract MSS (maximum size segment) from a pcap file ? salwa17 0 1,713 Jun-29-2020, 09:06 AM
Last Post: salwa17
  Writing device driver to stop electric supply to any I/O port sumandas89 0 1,816 May-02-2019, 10:22 AM
Last Post: sumandas89
  how to upload a file to my gmail driver after login ?? evilcode1 5 4,206 Nov-06-2018, 07:33 AM
Last Post: evilcode1
  OpenCV, segment image Standard_user 6 7,708 Jan-01-2017, 08:29 PM
Last Post: Standard_user

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020