LibDriver MAX7219  2.0.0
MAX7219 full-featured driver
driver_max7219.c File Reference

driver max7219 source file More...

#include "driver_max7219.h"

Go to the source code of this file.

Macros

#define CHIP_NAME   "Maxim Integrated MAX7219"
 chip information definition More...
 
#define MANUFACTURER_NAME   "Maxim Integrated"
 
#define SUPPLY_VOLTAGE_MIN   4.0f
 
#define SUPPLY_VOLTAGE_MAX   5.5f
 
#define MAX_CURRENT   320.0f
 
#define TEMPERATURE_MIN   -40.0f
 
#define TEMPERATURE_MAX   85.0f
 
#define DRIVER_VERSION   2000
 
#define MAX7219_REG_DECODE   0x09
 chip register definition More...
 
#define MAX7219_REG_INTENSITY   0x0A
 
#define MAX7219_REG_SCAN_LIMIT   0x0B
 
#define MAX7219_REG_SHUT_DOWN   0x0C
 
#define MAX7219_REG_DISPLAY_TEST   0x0F
 

Functions

uint8_t max7219_set_display (max7219_handle_t *handle, max7219_digital_t digital, uint8_t data)
 set the display content More...
 
uint8_t max7219_set_matrix (max7219_handle_t *handle, uint8_t matrix[8])
 set the content matrix More...
 
uint8_t max7219_set_cascade (max7219_handle_t *handle, max7219_cascade_t *cascade, uint16_t len)
 set the cascade data More...
 
uint8_t max7219_set_decode (max7219_handle_t *handle, max7219_decode_t decode)
 set the decode mode More...
 
uint8_t max7219_set_mode (max7219_handle_t *handle, max7219_mode_t mode)
 set the chip mode More...
 
uint8_t max7219_set_display_test_mode (max7219_handle_t *handle, max7219_display_test_mode_t mode)
 set the display test mode More...
 
uint8_t max7219_set_intensity (max7219_handle_t *handle, max7219_intensity_t intensity)
 set the display intensity More...
 
uint8_t max7219_set_scan_limit (max7219_handle_t *handle, max7219_scan_limit_t limit)
 set the scan limit More...
 
uint8_t max7219_init (max7219_handle_t *handle)
 initialize the chip More...
 
uint8_t max7219_deinit (max7219_handle_t *handle)
 close the chip More...
 
uint8_t max7219_set_reg (max7219_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register More...
 
uint8_t max7219_info (max7219_info_t *info)
 get chip's information More...
 

Detailed Description

driver max7219 source file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
2.0.0
Author
Shifeng Li
Date
2021-03-22

history

Date Version Author Description
2021/03/22 2.0 Shifeng Li format the code
2020/12/05 1.0 Shifeng Li first upload

Definition in file driver_max7219.c.

Macro Definition Documentation

◆ CHIP_NAME

#define CHIP_NAME   "Maxim Integrated MAX7219"

chip information definition

chip name

Definition at line 43 of file driver_max7219.c.

◆ DRIVER_VERSION

#define DRIVER_VERSION   2000

driver version

Definition at line 50 of file driver_max7219.c.

◆ MANUFACTURER_NAME

#define MANUFACTURER_NAME   "Maxim Integrated"

manufacturer name

Definition at line 44 of file driver_max7219.c.

◆ MAX7219_REG_DECODE

#define MAX7219_REG_DECODE   0x09

chip register definition

decode register

Definition at line 55 of file driver_max7219.c.

◆ MAX7219_REG_DISPLAY_TEST

#define MAX7219_REG_DISPLAY_TEST   0x0F

display test register

Definition at line 59 of file driver_max7219.c.

◆ MAX7219_REG_INTENSITY

#define MAX7219_REG_INTENSITY   0x0A

intensity register

Definition at line 56 of file driver_max7219.c.

◆ MAX7219_REG_SCAN_LIMIT

#define MAX7219_REG_SCAN_LIMIT   0x0B

scan limit register

Definition at line 57 of file driver_max7219.c.

◆ MAX7219_REG_SHUT_DOWN

#define MAX7219_REG_SHUT_DOWN   0x0C

shut down register

Definition at line 58 of file driver_max7219.c.

◆ MAX_CURRENT

#define MAX_CURRENT   320.0f

chip max current

Definition at line 47 of file driver_max7219.c.

◆ SUPPLY_VOLTAGE_MAX

#define SUPPLY_VOLTAGE_MAX   5.5f

chip max supply voltage

Definition at line 46 of file driver_max7219.c.

◆ SUPPLY_VOLTAGE_MIN

#define SUPPLY_VOLTAGE_MIN   4.0f

chip min supply voltage

Definition at line 45 of file driver_max7219.c.

◆ TEMPERATURE_MAX

#define TEMPERATURE_MAX   85.0f

chip max operating temperature

Definition at line 49 of file driver_max7219.c.

◆ TEMPERATURE_MIN

#define TEMPERATURE_MIN   -40.0f

chip min operating temperature

Definition at line 48 of file driver_max7219.c.