DogFlu66
Member
Introduction
This library is designed to control the MAX7219 chip using a PIC18 microcontroller with the Pic18 Basic language in Oshonsoft. It enables managing LED 7-segment displays, simplifying the configuration, data transfer, and brightness control of up to 8 digits. The library includes functions to initialize the device, send data, clear the display, adjust brightness, and display text strings.
This library does not use the MMSP module.
Functions and their descriptions
- MAX7219_Init
Configures communication pins, initializes the MAX7219, and sets it up for basic operation. - MAX7219_Send(reg As Byte, data As Byte)
Sends data to a specific register on the MAX7219. - MAX7219_Clear
Turns off all segments of the 8 connected digits. - MAX7219_Full
Lights up all segments of the 8 connected digits. - MAX7219_SetIntensity(intensity As Byte)
Adjusts the display brightness within a range of 0 (minimum) to 15 (maximum). - MAX7219_DisplayString(_string[16] As String)
Displays a formatted text string on the display, handling characters and decimal points. - MAX7219_Digits(index As Byte) As Byte
Returns the bitmask corresponding to the requested character. - MAX7219_GetSegmentIndex(char As Byte) As Byte
Returns the segment index for a character (numbers, letters, spaces, or symbols).
Attachments
Last edited: