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
#10
Sorry for the delay, got locked out of the forum.
the scope data, in hex, is 0F01 09FF 0A0A 0B00 0003
the first byte of each group is the command and the 2nd byte is the command's argument.
0F01 makes sure test mode is off.
09FF sets the MAX7219 to decode all data.
0A0A sets the intensity of the of the led 7 segments. a value of 10 (0x0A) sets the intensity level to a middle value.
0B00 tells the MAX7219 to just scan digit 0 and not scan any of the other 7 digits which means only the first digit would display a number.
0003
tells the MAX7219 to display segments a,b,c if decode was off.
the 09FF told the MAX7219 to decode all digits which means decode the decimal number 3 (0b0011 or 0x03) and turn on segments a,b,c,d and g.

I do not see what you are talking about of just segment a being on.

The commands are not being recognized at all.
for example, i can send 0F00 to turn on all digits in test mode, but nothing happens.

I am out of town for a week and should have the new 6951 to try when i get back home.

Thanks for your comments and i will update this discussion next week.






This means that when data is received for a specific digit, that the data is the value of the number to be displayed and the MAX7219 translates the data byte(actually just bits 0-3) to turn on the
Reply


Messages In This Thread
RE: Python code a Max7219/7221 7 segment driver - by Aggie64 - Nov-24-2022, 02:10 AM

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