使用自己开发的app远程控制MAX7219点阵屏幕

news/2024/12/28 19:56:10/

使用自己开发的app远程控制MAX7219点阵屏幕

  • 一.功能介绍:
    • 二.芯片介绍:
    • 三.实现原理:
    • 四.代码部分:
    • 其它资料:

一.功能介绍:

1.可以固定显示想显示的内容
2.点阵屏幕在无指令的时候3秒换一次内容
3.可以通过云量app进行内容更改

二.芯片介绍:

MAX7219/MAX7221是一种集成化的串行输入/输出共阴极显示驱动器,它连接微处理器
与8位数字的7段数字LED显示,也可以连接条线图显示器或者64个独立的LED。其上包括一
个片上的B型BCD编码器、多路扫描回路,段字驱动器,而且还有一个8*8的静态RAM用来存
储每一个数据。只有一个外部寄存器用来设置各个LED的段电流。MAX7221与SPI™、QSPI™
以及 MICROWIRE™相兼容,同时它有限制回转电流的段驱动来减少EMI(电磁干扰)。
一个方便的四线串行接口可以联接所有通用的微处理器。每个数据可以寻址在更新时不需
要改写所有的显示。MAX7219/MAX7221同样允许用户对每一个数据选择编码或者不编码。
整个设备包含一个150μA的低功耗关闭模式,模拟和数字亮度控制,一个扫描限制寄存
器允许用户显示1-8位数据,还有一个让所有LED发光的检测模式。
在应用时要求3V的操作电压或segment blinking,可以查阅MAX6951数据资料。
引脚图:
max7219
时序图:
时序图

三.实现原理:

我使用的控制方法跟网上流传的有一点不一样,可能很多人不是很懂我的这种驱动方法,
底层驱动我是使用的是<LedControl.h>这个库文件,因为这个库文件最大支持串联个数好像是12个还是多少个,我们这里使用了16个8*8的点阵屏幕,所以我就改了一下方法,使用了两路同时驱动的方法
上半屏我用8个max7219驱动下半屏在用另外8个就可以了,只是这样就用掉了6个io口。
实现app远程控制的原理更简单了,我们只需要使用mqtt通信协议就可以了,当然mqtt可以使用免费的也可以自己搭建一个,我这里是我自己搭建的一个mqtt服务器。
.
app部分:开发app有很多开发平台,而我这里选择的是一个中文的一个开发平台E4A,可以适合不会java的人,用户只需要提前定义好固定内容就可以,然后通过mqtt发送给单片机。
.
单片机部分:只需要使用mqtt通信协议接收订阅的主题消息就可以了,我们这里定义的比较简单,当主题消息内容为1时显示什么,为2就显示什么,就这么简单
接线:
上半屏:
DIN = D0
CS1 = D1
CLK = D2
下半屏:
DIN = D7
CS1 = D6
CLK = D5

接线图:
在这里插入图片描述
下半屏同方法

四.代码部分:

#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Ticker.h>
#include <LedControl.h>int DIN1 = D0;
int CS1 =  D1;
int CLK1 = D2;
int DIN = D7;
int CS =  D6;
int CLK = D5;LedControl LC1 = LedControl(DIN,CLK,CS,8);
LedControl LC2 = LedControl(DIN1,CLK1,CS1,8);// 设置wifi接入信息(请根据您的WiFi信息进行修改)
const char* ssid = "H3C";  //WiFi名
const char* passwor密码d = "";//密码,如果没密码就不写
const char* mqttServer = "192.168.1.1";//mqtt服务器IP
// 如以上MQTT服务器无法正常连接,请前往以下页面寻找解决方案
// http://www.taichi-maker.com/public-mqtt-broker/Ticker ticker;
WiFiClient wifiClient;
PubSubClient mqttClient(wifiClient);int count,jsq;    // Ticker计数用变量
byte hai16[][32] = {
0x00,0x00,0x24,0x14,0x8C,0xC4,0x96,0xA5,0xCC,0x94,0x24,0x00,0x8C,0x02,0x60,0x10,
0x00,0x40,0x40,0x22,0x15,0x08,0x24,0x42,0xFC,0x08,0x10,0x20,0x01,0x7E,0x04,0x04,/*"滚",0*/0x00,0x00,0x00,0xFC,0x40,0x40,0x40,0x40,0xFF,0x40,0x40,0x40,0x40,0x7C,0x00,0x00,
0x00,0x00,0xFC,0x40,0x40,0x40,0x40,0x40,0x7F,0x40,0x40,0x40,0x40,0x40,0x7C,0x00,/*"出",1*/0x00,0x00,0x08,0x08,0x68,0x88,0x08,0x08,0xFF,0x08,0x08,0xC8,0x28,0x08,0x08,0x00,
0x00,0x21,0x21,0x11,0x11,0x09,0x05,0x03,0xFF,0x03,0x05,0x09,0x11,0x11,0x21,0x21,/*"来",2*/0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x00,0x00,/*"!",3*/0x00,0x00,0x00,0xFE,0x52,0x52,0x52,0xFE,0x00,0x88,0x48,0xFF,0x68,0x88,0x08,0x00,
0x00,0x30,0x08,0x03,0x72,0x42,0x42,0x5B,0x44,0x40,0x40,0x3B,0x00,0x00,0x31,0x40,/*"想",4*/0x00,0x18,0x28,0x08,0x08,0xC8,0x08,0x0F,0x18,0x20,0x40,0x07,0xF8,0x60,0x80,0x00,
0x00,0x18,0x06,0x01,0x00,0x7F,0x80,0x40,0x03,0x0C,0x10,0x00,0xFF,0x00,0x00,0x01,/*"你",5*/0x00,0x00,0x00,0x02,0x06,0x0A,0x12,0x22,0xE2,0x02,0x02,0x02,0x02,0x02,0x02,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x80,0x40,0x00,0x00,0x00,0x00,0x00,/*"了",6*/0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x00,0x00,/*"!",7*/0x00,0x20,0xA0,0x2C,0x22,0x20,0xFF,0x20,0x20,0x22,0x23,0xFE,0x24,0x24,0x24,0x20,
0x00,0xF8,0x41,0x22,0x14,0x0C,0x13,0x20,0x40,0x41,0x02,0x7F,0x84,0x48,0x08,0x00,/*"我",8*/0x00,0x00,0x00,0xFC,0x40,0x40,0x40,0x40,0xFF,0x40,0x40,0x40,0x40,0x7C,0x00,0x00,
0x00,0x00,0xFC,0x40,0x40,0x40,0x40,0x40,0x7F,0x40,0x40,0x40,0x40,0x40,0x7C,0x00,/*"出",9*/0x00,0x04,0x04,0x74,0x54,0x54,0x54,0x54,0xFF,0x54,0x54,0x54,0x54,0x74,0x04,0x04,
0x00,0x04,0x04,0x1F,0x15,0x15,0x15,0x15,0x7F,0x95,0x55,0x15,0x15,0x15,0x04,0x04,/*"事",10*/0x00,0x00,0x00,0x02,0x06,0x0A,0x12,0x22,0xE2,0x02,0x02,0x02,0x02,0x02,0x02,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x80,0x40,0x00,0x00,0x00,0x00,0x00,/*"了",11*/0x00,0x04,0xC4,0x04,0x34,0xC4,0x86,0x8D,0xB4,0xC4,0x84,0x04,0x00,0xCC,0x42,0x40,
0x00,0x00,0xC0,0x23,0x14,0x08,0x11,0x22,0x44,0x48,0x90,0x88,0x10,0x3F,0x00,0x00,/*"该",12*/0x00,0x80,0x84,0x94,0xA4,0x86,0x85,0xA4,0x94,0x80,0x06,0xDA,0x22,0x02,0xFE,0x00,
0x00,0x00,0xFC,0x44,0x44,0x44,0x44,0x44,0xFC,0x00,0x07,0x08,0x10,0x08,0xFF,0x00,/*"陪",13*/0x00,0x20,0xA0,0x2C,0x22,0x20,0xFF,0x20,0x20,0x22,0x23,0xFE,0x24,0x24,0x24,0x20,
0x00,0xF8,0x41,0x22,0x14,0x0C,0x13,0x20,0x40,0x41,0x02,0x7F,0x84,0x48,0x08,0x00,/*"我",14*/0x00,0x00,0x00,0x02,0x06,0x0A,0x12,0x22,0xE2,0x02,0x02,0x02,0x02,0x02,0x02,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x80,0x40,0x00,0x00,0x00,0x00,0x00,/*"了",15*/0x00,0x60,0xA2,0x23,0x2E,0x32,0x22,0x22,0x32,0x2C,0x24,0x24,0x34,0x2C,0x64,0x80,
0x00,0x80,0x80,0x40,0x43,0x25,0x29,0x11,0x11,0x11,0x29,0x25,0x43,0x41,0x80,0x80,/*"受",16*/0x00,0x10,0x10,0x90,0x91,0x51,0x31,0x12,0xFE,0x12,0x32,0x52,0x92,0x90,0x10,0x10,
0x00,0x05,0x05,0x84,0x44,0x4C,0x54,0x24,0x24,0x27,0x54,0x5C,0x94,0x84,0x85,0x05,/*"委",17*/0x00,0x00,0x00,0xDE,0x12,0x12,0x12,0xF2,0x12,0x12,0x12,0xD2,0x12,0xFE,0x00,0x00,
0x00,0x00,0xF8,0x43,0x42,0x42,0x42,0x7F,0x42,0x42,0x42,0x43,0x78,0x0F,0x30,0x40,/*"屈",18*/0x00,0x00,0x00,0x02,0x06,0x0A,0x12,0x22,0xE2,0x02,0x02,0x02,0x02,0x02,0x02,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x80,0x40,0x00,0x00,0x00,0x00,0x00,/*"了",19*/0x00,0x80,0x42,0x26,0x1A,0x12,0x22,0x42,0x82,0x80,0x18,0x20,0x63,0xAC,0x30,0x20,
0x00,0x40,0x42,0x42,0x42,0x7E,0x42,0x42,0x42,0x40,0x12,0x12,0x12,0x22,0x67,0x22,/*"经",20*/0x00,0x00,0x3E,0x42,0x22,0x02,0x1E,0x22,0x40,0x21,0x11,0x2A,0x22,0x42,0x7E,0x00,
0x00,0x00,0x80,0x40,0x5F,0x21,0x21,0x01,0x1D,0x21,0x41,0x41,0x9F,0x80,0x80,0x00,/*"贸",21*/0x00,0x00,0x18,0x28,0x08,0x08,0xC8,0x0F,0x30,0x40,0x9C,0x64,0x84,0x44,0x24,0x04,
0x00,0x80,0x40,0x20,0x18,0x06,0x01,0x06,0x18,0x20,0x4C,0x82,0x01,0x06,0x08,0x10,/*"欢",22*/0x00,0x30,0x50,0x13,0x14,0x98,0x90,0x90,0x96,0x91,0x90,0x90,0x96,0x11,0x30,0x40,
0x00,0x04,0x04,0x04,0x04,0x04,0x05,0x06,0x7E,0x84,0x44,0x04,0x04,0x04,0x04,0x04,/*"学",23*/0x00,0x88,0x48,0x28,0x08,0x0E,0x09,0x28,0x48,0x80,0x10,0x90,0xFF,0xD0,0x10,0x10,
0x00,0x80,0x80,0x43,0x2C,0x10,0x2C,0x43,0x80,0x80,0x01,0x00,0xFF,0x00,0x03,0x04,/*"校",24*/0x00,0x00,0x18,0x28,0x08,0x08,0xC8,0x0F,0x30,0x40,0x9C,0x64,0x84,0x44,0x24,0x04,
0x00,0x80,0x40,0x20,0x18,0x06,0x01,0x06,0x18,0x20,0x4C,0x82,0x01,0x06,0x08,0x10,/*"欢",25*/0x00,0x00,0xFC,0x04,0x04,0xFC,0x00,0x02,0x04,0xFC,0x00,0x00,0xCC,0x42,0x40,0x40,
0x00,0x40,0x43,0x44,0x42,0x7F,0x40,0x42,0x44,0x4F,0x40,0x20,0x1F,0x20,0x40,0x00,/*"迎",26*/0x00,0x00,0x8C,0x54,0x24,0x04,0xF4,0x04,0x67,0x88,0x10,0x23,0xFC,0x08,0x10,0x20,
0x00,0x60,0x11,0x00,0xE0,0x80,0x83,0x84,0xB2,0x88,0x81,0x80,0x77,0x00,0x30,0x40,/*"您",27*/0x00,0x00,0x00,0xF8,0x08,0x08,0x08,0x08,0x08,0x68,0x88,0x0B,0x0C,0x10,0x20,0x40,
0x00,0x00,0x00,0x3F,0x40,0x98,0x4C,0x0A,0x08,0x08,0x09,0x0A,0x1C,0x08,0x00,0x00,/*"勾",28*/0x40,0x40,0x42,0x42,0x42,0x42,0xC2,0x42,0x42,0x42,0x42,0x42,0x42,0x40,0x40,0x00,
0x00,0x20,0x70,0x28,0x24,0x23,0x20,0x20,0x20,0x24,0x28,0x30,0xE0,0x00,0x00,0x00,/*"云",0*/0x00,0x00,0xFC,0x84,0x25,0x16,0xFC,0x00,0xFE,0x22,0xFE,0x00,0xFE,0x22,0xFE,0x00,
0x00,0x7E,0x82,0x52,0x12,0x12,0x13,0x00,0xFF,0x82,0x3F,0x40,0xBF,0x22,0x1F,0x60,/*"鹏",30*/0x00,0x40,0x40,0x42,0x42,0x42,0x42,0x42,0x42,0xC2,0x42,0x42,0x42,0x42,0x40,0x40,
0x00,0x00,0x00,0xE0,0x30,0x28,0x24,0x20,0x20,0x20,0x23,0x24,0x28,0x70,0x20,0x00,/*"云",31*/0x00,0x20,0x20,0x20,0xBE,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xBE,0x20,0x20,0x20,
0x00,0x00,0x80,0x80,0xAF,0xAA,0xAA,0xAA,0xFF,0xAA,0xAA,0xAA,0xAF,0x80,0x80,0x00,/*"量",32*/0x00,0x00,0x00,0x01,0x81,0x09,0x11,0x21,0x62,0xA2,0xA6,0x2A,0x32,0x22,0x00,0x00,
0x00,0x00,0x46,0x23,0x12,0x0A,0x02,0x02,0x7E,0x82,0x42,0x0B,0x13,0x22,0x42,0x00,/*"系",33*/0x00,0x88,0xC8,0xA8,0x88,0x8E,0x99,0xA8,0xC8,0x88,0x00,0x30,0x63,0xAC,0x30,0x20,
0x00,0x71,0x40,0x40,0x3F,0x00,0x00,0x0F,0x30,0x40,0x80,0x12,0x12,0x22,0x67,0x22,/*"统",34*/0x00,0x00,0xF8,0x08,0xF8,0x08,0x78,0x8F,0x10,0x20,0x10,0x10,0xFF,0x10,0x3C,0x40,
0x00,0x00,0x3F,0x40,0x81,0x46,0x18,0x21,0x42,0x04,0x01,0x01,0xFF,0x02,0x06,0x02,/*"物",35*/0x00,0x00,0x10,0x13,0x14,0xF0,0x16,0x11,0x10,0x00,0x02,0xFE,0x92,0x92,0xFE,0x02,
0x00,0x81,0x41,0x31,0x0D,0x03,0x0D,0x31,0x41,0x81,0x04,0xFF,0x08,0x08,0x1F,0x10,/*"联",36*/0x00,0x00,0xFE,0x02,0x72,0x82,0x42,0x22,0x02,0x72,0x82,0x42,0x22,0x02,0xFE,0x00,
0x00,0x00,0x7F,0x80,0x4E,0x01,0x06,0x08,0x10,0x0E,0x01,0x06,0x08,0x10,0xFF,0x00,/*"网",37*/0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x00,0x00,/*"!",38*/0x00,0x08,0x08,0x08,0x08,0x08,0xE8,0x08,0x08,0x0B,0x0C,0x38,0xC8,0x88,0x08,0x08,
0x00,0x40,0x41,0x41,0x41,0x41,0x7F,0x41,0x41,0x41,0x41,0x40,0xFF,0x00,0x01,0x02,/*"在",0*/0x00,0x40,0x40,0x42,0x42,0x42,0x42,0x42,0x42,0xC2,0x42,0x42,0x42,0x42,0x40,0x40,
0x00,0x00,0x00,0xE0,0x30,0x28,0x24,0x20,0x20,0x20,0x23,0x24,0x28,0x70,0x20,0x00,/*"云",1*/0x00,0x20,0x20,0x20,0xBE,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xBE,0x20,0x20,0x20,
0x00,0x00,0x80,0x80,0xAF,0xAA,0xAA,0xAA,0xFF,0xAA,0xAA,0xAA,0xAF,0x80,0x80,0x00,/*"量",2*/0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0xCC,0x22,0x00,0x22,0xA3,0xFE,0xA4,0x24,0x24,
0x00,0x02,0x02,0x02,0xFF,0x04,0x04,0x04,0x04,0x04,0x01,0x00,0xFF,0x01,0x06,0x08,/*"科",3*/0x00,0x08,0x88,0x88,0x88,0xFF,0x88,0x88,0x88,0x08,0x90,0x10,0xFF,0x10,0x10,0x10,
0x00,0x80,0x81,0x46,0x28,0x10,0x2C,0x43,0x40,0x80,0x80,0x01,0x7F,0x82,0x44,0x04,/*"技",4*/0x00,0x00,0x18,0x28,0x08,0x08,0xC8,0x0F,0x30,0x40,0x9C,0x64,0x84,0x44,0x24,0x04,
0x00,0x80,0x40,0x20,0x18,0x06,0x01,0x06,0x18,0x20,0x4C,0x82,0x01,0x06,0x08,0x10,/*"欢",5*/0x00,0x00,0xFC,0x04,0x04,0xFC,0x00,0x02,0x04,0xFC,0x00,0x00,0xCC,0x42,0x40,0x40,
0x00,0x40,0x43,0x44,0x42,0x7F,0x40,0x42,0x44,0x4F,0x40,0x20,0x1F,0x20,0x40,0x00,/*"迎",6*/0x00,0x00,0x8C,0x54,0x24,0x04,0xF4,0x04,0x67,0x88,0x10,0x23,0xFC,0x08,0x10,0x20,
0x00,0x60,0x11,0x00,0xE0,0x80,0x83,0x84,0xB2,0x88,0x81,0x80,0x77,0x00,0x30,0x40,/*"您",7*/};void setup() {Serial.begin(9600);for(int i = 0;i<8;i++){LC1.shutdown(i,false);       //启动时,关闭省电模式LC1.setIntensity(i,8);       //亮度设置LC1.clearDisplay(i);         //清除显示LC2.shutdown(i,false);       //启动时,关闭省电模式LC2.setIntensity(i,8);       //亮度设置LC2.clearDisplay(i);         //清除显示}pinMode(LED_BUILTIN, OUTPUT);// Ticker定时对象ticker.attach(1, tickerCount);//设置ESP8266工作模式为无线终端模式WiFi.mode(WIFI_STA);// 连接WiFiconnectWifi();// 设置MQTT服务器和端口号mqttClient.setServer(mqttServer, 1883);mqttClient.setCallback(receiveCallback);// 连接MQTT服务器connectMQTTServer();
}void loop() {if (mqttClient.connected()) { // 如果开发板成功连接服务器// 每隔3秒钟发布一次信息 switch(count){case 3:yhjm(11);break;case 6:yhjm(12);break;case 9:yhjm(13);break;case 11:count=0;break;}mqttClient.loop();} else {                  // 如果开发板未能成功连接服务器connectMQTTServer();    // 则尝试连接服务器}
//   if(jsq==0)
//   {
//    yhjm(8);
//  delay(3500);
//    yhjm(9);
//  delay(3500);
//    yhjm(10);
//  delay(3500);
//   }
//   
//   if(jsq==1)
//   {
//    delay(1500);
//    jsq=0;
//   }
}void tickerCount(){count++;
}void connectMQTTServer(){// 根据ESP8266的MAC地址生成客户端ID(避免与其它ESP8266的客户端ID重名)String clientId = "esp8266-" + WiFi.macAddress();// 连接MQTT服务器if (mqttClient.connect(clientId.c_str())) { Serial.println("MQTT Server Connected.");Serial.println("Server Address: ");Serial.println(mqttServer);Serial.println("ClientId:");Serial.println(clientId);subscribeTopic(); // 订阅指定主题} else {Serial.print("MQTT Server Connect Failed. Client State:");Serial.println(mqttClient.state());delay(3000);}   
}
// 订阅指定主题
void subscribeTopic(){// 建立订阅主题。主题名称以Taichi-Maker-Sub为前缀,后面添加设备的MAC地址。// 这么做是为确保不同设备使用同一个MQTT服务器测试消息订阅时,所订阅的主题名称不同String topicString = "huww";char subTopic[topicString.length() + 1];  strcpy(subTopic, topicString.c_str());// 通过串口监视器输出是否成功订阅主题以及订阅的主题名称if(mqttClient.subscribe(subTopic)){Serial.println("Subscribe Topic:");Serial.println(subTopic);} else {Serial.print("Subscribe Fail...");}  
}// 收到信息后的回调函数
void receiveCallback(char* topic, byte* payload, unsigned int length) {Serial.print("Message Received [");Serial.print(topic);Serial.print("] ");for (int i = 0; i < length; i++) {Serial.print((char)payload[i]);}Serial.println("");Serial.print("Message Length(Bytes) ");Serial.println(length);if ((char)payload[0] == '1') {     // 如果收到的信息以“1”为开始digitalWrite(LED_BUILTIN, LOW);  // 则点亮LED。if(jsq==0){yhjm(8); }else{yhjm(1);}jsq=1;} if ((char)payload[0] == '2') {     // 如果收到的信息以“1”为开始yhjm(2);jsq=1;}if ((char)payload[0] == '3') {     // 如果收到的信息以“1”为开始yhjm(3);jsq=1;}if ((char)payload[0] == '4') {     // 如果收到的信息以“1”为开始yhjm(4);jsq=1;}if ((char)payload[0] == '5') {     // 如果收到的信息以“1”为开始yhjm(5);jsq=1;}else {                           digitalWrite(LED_BUILTIN, HIGH); // 否则熄灭LED。}}// ESP8266连接wifi
void connectWifi(){WiFi.begin(ssid, password);//等待WiFi连接,成功连接后输出成功信息while (WiFi.status() != WL_CONNECTED) {delay(1000);Serial.print(".");}Serial.println("");Serial.println("WiFi Connected!");  Serial.println(""); 
}void xiehs(int dat,int dat2)
{int d;switch(dat){case 1:d=0;break;  case 2:d=2;break; case 3:d=4;break; case 4:d=6;break; }for(int i = 0;i<8;i++){LC1.setColumn(d+1,i,hai16[dat2][i]);LC1.setColumn(d,i,hai16[dat2][i+8]);LC2.setColumn(d+1,i,hai16[dat2][i+16]);LC2.setColumn(d,i,hai16[dat2][i+24]);}
}void yhjm(int i)
{
switch(i)
{case 1:xiehs(1,0);xiehs(2,1);xiehs(3,2);xiehs(4,3);break;case 2:xiehs(1,4);xiehs(2,5);xiehs(3,6);xiehs(4,7);break;case 3:xiehs(1,8);xiehs(2,9);xiehs(3,10);xiehs(4,11);break;case 4:xiehs(1,12);xiehs(2,13);xiehs(3,14);xiehs(4,15);break;case 5:xiehs(1,16);xiehs(2,17);xiehs(3,18);xiehs(4,19);break;case 6:xiehs(1,20);xiehs(2,21);xiehs(3,23);xiehs(4,24);break;case 7:xiehs(1,25);xiehs(2,26);xiehs(3,27);xiehs(4,3);break;case 8:xiehs(1,28);xiehs(2,41);xiehs(3,30);xiehs(4,3);break;case 9:xiehs(1,31);xiehs(2,32);xiehs(3,33);xiehs(4,34);break;case 10:xiehs(1,35);xiehs(2,36);xiehs(3,37);xiehs(4,38);break;case 11:xiehs(1,28);xiehs(2,29);xiehs(3,30);xiehs(4,39);break;case 12:xiehs(1,40);xiehs(2,41);xiehs(3,42);xiehs(4,43);break;case 13:xiehs(1,44);xiehs(2,45);xiehs(3,46);xiehs(4,3);break;
}   
}

其它资料:

需要其他资料可以gz我
app 私发
max7219资料地址:链接: https://pan.baidu.com/s/1gY2_95pbh7-q3WeENNWerw
提取码:1234


http://www.ppmy.cn/news/881693.html

相关文章

iOS开发 -手机屏幕适配的简单使用

我们先来看一张美工小姐姐提供的蓝湖图。 发现什么了吗&#xff1f; 设计尺寸750X1314是设备(物理)分辨率。其实美工是按照6/6s/7/8标准标注的图。因为6/6s/7/8的缩放因子是2x&#xff0c;所以750/2X1314/2 375X667&#xff0c;就是我们6/6s/7/8手机的逻辑分辨率。 //UI设计基…

数据库系统 - 家庭教育平台设计开发

目录 1.绪论 1.1项目背景 1.2家庭教育平台的发展现状与优势 1.2.1国内外发展现状 1.2.2家庭教育平台的优势 2.需求分析 2.1可行性分析 2.1.1经济可行性 2.1.2 技术可行性 2.1.3操作可行性 2.2系统功能 2.2.1 家庭教育资源 2.2.2 家庭教育指导师 2.2.3家庭教育咨询…

使用 SageMaker 对 Whisper 模型进行微调及部署

使用 SageMaker 对 Whisper 模型进行微调及部署 Whisper 作为 OpenAI 最新开源的自动语音识别&#xff08;ASR&#xff09;模型&#xff0c;采用了编码器-解码器&#xff08;encoder- decoder&#xff09;transformer架构&#xff0c;并使用了 68 万小时的从互联网收集的多语言…

电脑广告弹窗怎么解决?

前几天女朋友下载植物大战僵尸往自己电脑上下载了一堆奇奇怪怪的东西&#xff0c;导致电脑广告弹窗异常的多。于是乎天天跟我嘤嘤嘤。 1、出现广告弹窗以后打开任务管理器&#xff0c;在进程里找到广告的后台进程&#xff0c;右键属性&#xff0c;打开文件的具体位置。&#x…

三年多的电脑生涯的总结

从 2009 年 我小学六年级 我向家里要求 买一台电脑 爸爸同意了 没过多久 电脑就到家了 我清晰的记得 那台电脑 买会来后 我花了一个下午的时间 去装杀毒和卸载杀毒软件 然后杀毒 然后又很卡 最好姑姑叫人帮我弄了下 就好了 我那时候觉得那人好牛B 后来发现原来那都是电脑的常识…

面向对象编程(Python版详解)

【辰兮要努力】&#xff1a;hello你好我是辰兮&#xff0c;很高兴你能来阅读&#xff0c;昵称是希望自己能不断精进&#xff0c;向着优秀程序员前行&#xff01; 博客来源于项目以及编程中遇到的问题总结&#xff0c;偶尔会有读书分享&#xff0c;我会陆续更新Java前端、后台、…

Objective-C基础——面对对象语法01

一、面向对象和面向过程思想 OC是面向对象的&#xff0c;C是面向过程的。面向对象和面向过程只是解决问题的两种不同思想 1.面向对象和面向过程的区别 以用电脑听歌为例 a) 面向过程&#xff1a; --- > 打开电脑 --- &g…

《关于我学CentOS-7跳进坑里忘记跳出来的那些事》——第一集:装了系统但还没完全装上

注&#xff1a;以下大部分内容属于个人理解&#xff0c;如果有其他见解请以百度说法居多的那一方为主&#xff1b; 一天一个游戏推荐&#xff1a;底特律&#xff1a;我欲成人&#xff1b;其实叫做变人&#xff0c;但是更喜欢我欲成人这个名字&#x1f603; 英文名&#xff1a;…