Project 4  Seven-Segment Display with I2C interface
Neff Site
Macros
ht16k33.h File Reference

Header file for the HOLTEK HT16K33 LED Controller Driver with keyscan. More...

Go to the source code of this file.

Macros

#define HT16K33_DRAM_SIZE   16
 
#define HT16K33_SET_DRAM_ADDR   0x00
 
#define HT16K33_DRAM_ADDR(ADDR)   ((ADDR) & 0x0F)
 
#define HT16K33_SYSTEM_SETUP   0x20
 
#define HT16K33_OSCILLATOR_ON   0x01
 
#define HT16K33_OSCILLATOR_OFF   0x00
 
#define HT16K33_READ_KEY_ADDR   0x40
 
#define HT16K33_READ_FLAG_ADDR   0x60
 
#define HT16K33_DISPLAY_SETUP   0x80
 
#define HT16K33_BLINK_OFF   0x00
 
#define HT16K33_BLINK_FAST   0x02
 
#define HT16K33_BLINK_MED   0x04
 
#define HT16K33_BLINK_SLOW   0x06
 
#define HT16K33_DISPLAY_OFF   0x00
 
#define HT16K33_DISPLAY_ON   0x01
 
#define HT16K33_ROWINT_SET   0xA0
 
#define HT16K33_SET_ROW   0x00
 
#define HT16K33_SET_INT_ACTIVE_LOW   0x1
 
#define HT16K33_SET_INT_ACTIVE_HIW   0x3
 
#define HT16K33_SET_DIMMING   0xE0
 
#define HT16K33_DUTY16(DUTY)   (((DUTY)-1) & 0x0F)
 

Detailed Description

Header file for the HOLTEK HT16K33 LED Controller Driver with keyscan.

This file defines mnemonics for the commands of the HT16K33 controller. Please see page 30 of the HT16K33 data sheet for the details.

Author
Wolfgang Neff
Version
1.2
Date
2017-12-23
History
Created: 2017-08-03
Modified: 2017-11-18
Modified: 2017-12-23

Macro Definition Documentation

◆ HT16K33_BLINK_FAST

#define HT16K33_BLINK_FAST   0x02

◆ HT16K33_BLINK_MED

#define HT16K33_BLINK_MED   0x04

◆ HT16K33_BLINK_OFF

#define HT16K33_BLINK_OFF   0x00

◆ HT16K33_BLINK_SLOW

#define HT16K33_BLINK_SLOW   0x06

◆ HT16K33_DISPLAY_OFF

#define HT16K33_DISPLAY_OFF   0x00

◆ HT16K33_DISPLAY_ON

#define HT16K33_DISPLAY_ON   0x01

◆ HT16K33_DISPLAY_SETUP

#define HT16K33_DISPLAY_SETUP   0x80

◆ HT16K33_DRAM_ADDR

#define HT16K33_DRAM_ADDR (   ADDR)    ((ADDR) & 0x0F)

◆ HT16K33_DRAM_SIZE

#define HT16K33_DRAM_SIZE   16

◆ HT16K33_DUTY16

#define HT16K33_DUTY16 (   DUTY)    (((DUTY)-1) & 0x0F)

◆ HT16K33_OSCILLATOR_OFF

#define HT16K33_OSCILLATOR_OFF   0x00

◆ HT16K33_OSCILLATOR_ON

#define HT16K33_OSCILLATOR_ON   0x01

◆ HT16K33_READ_FLAG_ADDR

#define HT16K33_READ_FLAG_ADDR   0x60

◆ HT16K33_READ_KEY_ADDR

#define HT16K33_READ_KEY_ADDR   0x40

◆ HT16K33_ROWINT_SET

#define HT16K33_ROWINT_SET   0xA0

◆ HT16K33_SET_DIMMING

#define HT16K33_SET_DIMMING   0xE0

◆ HT16K33_SET_DRAM_ADDR

#define HT16K33_SET_DRAM_ADDR   0x00

◆ HT16K33_SET_INT_ACTIVE_HIW

#define HT16K33_SET_INT_ACTIVE_HIW   0x3

◆ HT16K33_SET_INT_ACTIVE_LOW

#define HT16K33_SET_INT_ACTIVE_LOW   0x1

◆ HT16K33_SET_ROW

#define HT16K33_SET_ROW   0x00

◆ HT16K33_SYSTEM_SETUP

#define HT16K33_SYSTEM_SETUP   0x20
Contact