3585 views|4 replies

28

Posts

1

Resources
The OP
 

HT16K33 Driver [Copy link]

 

How to write I2C data?

HT16K33.pdf

3.1 MB, downloads: 45

Latest reply

The driver community for HT1621 has it in its github repository. I seem to have seen the driver for HT1633 on github. You can try searching for it. https://github.com/micropython-Chinese-Community/mpy-lib   Details Published on 2020-4-19 09:08
 
 

1173

Posts

3

Resources
2
 

So you've never debugged a program.

 
 
 

28

Posts

1

Resources
3
 

I am a beginner, learning MIcroPython out of interest. I am not a professional. My main job is to repair computers and printers.

There are very few examples of MIcroPython available on the Internet, most of which are in C.

Learning is just an interest, not something that can be transformed into profit.

 
 
 

1w

Posts

25

Resources
4
 

The driver community for HT1621 has it in its github repository. I seem to have seen the driver for HT1633 on github. You can try searching for it.

链接已隐藏,如需查看请登录或者注册

 
 
 

28

Posts

1

Resources
5
 

Actually, I have been looking at the HT16K33 chip for a few days and have always wanted to find a similar I2C bus device to learn how to control it, but I couldn't find a suitable one. I would like to thank the teacher dcexpert above for his reminder. I looked at the control method of HT1621, which seems very simple. I followed its example and after a long period of experimentation, I finally found a way to control the HT16K33.

How to use HT16K33:

from pyb import I2C
i2c=I2C(2,I2C.MASTER)#2号I2C通道
i2c.init(I2C.MASTER,baudrate=4000000)#I2C初始化,速率400K

i2c.send(0x21,0x70)#0x21是系统振荡开启,0x20是关闭
i2c.send(0x81,0x70)#0x81是显示开启,0x80是显示关闭

i2c.mem_write(1,0x70,0)#1(最大255)对应LED灯亮,后面的0是地址,一共到15,16个地址,每个地址有8个LED

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list