本帖最后由 405616736 于 2023-3-5 01:43 编辑
unsigned char buffer[]={0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff};//64列
从数组0x7f,0xff推测你64列为低电平有效,对应行为高电平有效
Lattice_WriteData(buffer,0x7f,0xff);
这条代码,行给出0x7f,0xff已经点亮出第一个外所有LED。与点亮单个LED了的想法不符了。
建议先弄清楚点阵屏的行列有效电平。
再重点关注以下几行代码
HC595_DS = value&(0x7f >> i);
unsigned char buffer[]={0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff};//64列Lattice_WriteData(buffer,0x7f,0xff);
|