DurOS语音开发

     DuerOS语音开发项目,该项目通过搭载DuerOS开发者平台,利用平台开发的一组API规范,实现实时的语音播报功能。

整体流程示意图:

所用设备:树莓派微机系统、arduino与74HC595单片机、地图彩灯控制沙盘、小度语音。

数据流动:

       小度语音设备与DuerOs开发平台,登录同一账号,在此可以看作同一端。输入:通过语音输入-小度自动识别,通过语音识别出的关键字信息,查找远程数据库,校验比对查找出相应的路线以及景点信息,并将此信息通过TCP协议将两位代表路线的16进制数据传给树莓派,通过树莓派编写的脚本控制arduino单片机的IO口,从而控制彩灯的亮暗。一共152条路线,即:共有152条彩灯亮暗方式。与此同时,小度语音通过数据库中获取出的路线信息进行实时语音播报。

服务器端代码:

地址:https://github.com/16201535wangshenyu/DuerOSVoiceBroadcast.git

树莓派微机脚本:

char buffer [2];//存放串口数据
int a2= 2, a3 = 3, a4= 4, a5 = 5, a6 = 6,a7 = 7, a8 = 8, a9 = 9,a10 = 10, a11 = 11, a12 = 12,a13 = 13;//定义引脚
int ledPin = 16;
void setup() {for (int i = 2; i < 14; i++)//设置引脚模式{ pinMode(i, OUTPUT);}pinMode(ledPin, OUTPUT);//定义小灯接口为输出接口Serial.begin(115200);
}void shift(int x)
{digitalWrite(a13,LOW);digitalWrite(a11,x);digitalWrite(a13,HIGH);}
void shiftout(byte num)
{int s=1;for(int i = 0;i < 8; i++){shift(num & s);s <<= 1;}}
void shift1(int x)
{digitalWrite(a10,LOW);digitalWrite(a8,x);digitalWrite(a10,HIGH);}
void shift1out(byte num)
{int s=1;for(int i = 0;i < 8; i++){shift1(num & s);s <<= 1;}} 
void shift2(int x)
{digitalWrite(a7,LOW);digitalWrite(a5,x);digitalWrite(a7,HIGH);}
void shift2out(byte num)
{int s=1;for(int i = 0;i < 8; i++){shift2(num & s);s <<= 1;}}
void shift3(int x)
{digitalWrite(a4,LOW);digitalWrite(a2,x);digitalWrite(a4,HIGH);}
void shift3out(byte num)
{int s=1;for(int i = 0;i < 8; i++){shift3(num & s);s <<= 1;}}
void clean()
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void check()
{digitalWrite(a12,LOW);shift(1);      shift(1);      shift(1);      shift(1);      shift(1);      shift(1);      shift(1);      shift(1);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1(1);      shift1(1);      shift1(1);      shift1(1);      shift1(1);      shift1(1);      shift1(1);      shift1(1);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2(1);      shift2(1);      shift2(1);      shift2(1);      shift2(1);      shift2(1);      shift2(1);      shift2(1);      digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3(1);shift3(1);shift3(1);shift3(0);shift3(0);shift3(0);shift3(1);        shift3(1);        digitalWrite(a3,HIGH);delay(100);
}
void case1()      //东门->图书馆
{digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(48);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case2()         //东门->孔子广场
{     digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(176);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(120);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case3()         //东门->外国语学院
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(176);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(124);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case4()          //东门->国教学院
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(176);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(113);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case5()         //东门->海军学院
{ 
digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(176);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(96);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(64);digitalWrite(a3,HIGH);delay(100);
}
void case6()         //东门->南航医院
{ digitalWrite(a12,LOW);shiftout(56);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(112);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case7()         //东门->综合实验楼
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(51);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(64);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case8()        //东门->D栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(48);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case9()        //东门->商业街
{ digitalWrite(a12,LOW);shiftout(184);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(112);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case10()        //东门->A栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(112);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case11()       //东门->一食堂
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(112);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case12()       //东门->二食堂
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(51);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(192);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case13()       //东门->体育馆
{ digitalWrite(a12,LOW);shiftout(8);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(112);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case14()       //东门->体育学院
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(112);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case15()       //东门->三食堂
{ digitalWrite(a12,LOW);shiftout(71);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(112);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case16()       //东门->东南门
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(24);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case17()       //东门->M栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(28);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case33()         //图书馆->M栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(166);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case18()         //图书馆->孔子广场
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(120);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case19()         //图书馆->外国语学院
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(124);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case20()         //图书馆->国教学院         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(113);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case21()         //图书馆->海院         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(96);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(64);digitalWrite(a3,HIGH);delay(100);
}
void case22()         //图书馆->南航医院         
{ digitalWrite(a12,LOW);shiftout(38);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case23()         //图书馆->综合实验楼         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shiftout(129);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(64);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case24()         //图书馆->D栋         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(160);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case25()         //图书馆->商业街    
{ digitalWrite(a12,LOW);shiftout(193);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case26()         //图书馆->A栋         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(224);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case27()         //图书馆->一食堂         
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case28()         //图书馆->二食堂         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(192);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);delay(100);
}
void case29()         //图书馆->体育馆         
{ digitalWrite(a12,LOW);shiftout(8);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(224);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case30()         //图书馆->体育学院         
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(224);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case31()         //图书馆->三食堂         
{ digitalWrite(a12,LOW);shiftout(65);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case32()         //图书馆->东南门         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(184);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case34()        //孔子广场->外国语学院 
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(12);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case35()        //孔子广场->国教学院
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(25);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case36()        //孔子广场->海院
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(56);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(64);digitalWrite(a3,HIGH);delay(100);
}
void case37()        //孔子广场->南航医院         
{ digitalWrite(a12,LOW);shiftout(38);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(136);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);       
}
void case38()        //孔子广场->综合实验楼         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(120);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case39()        //孔子广场->D栋         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(35);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(120);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case40()        //孔子广场->商业街         
{ digitalWrite(a12,LOW);shiftout(193);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(136);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case41()        //孔子广场->A栋         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(120);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case42()        //孔子广场->一食堂         
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(136);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case43()        //孔子广场->二食堂         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(136);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case44()        //孔子广场->体育馆         
{ digitalWrite(a12,LOW);shiftout(8);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(224);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(120);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case45()        //孔子广场->体育学院         
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(224);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(120);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case46()        //孔子广场->三食堂         
{ digitalWrite(a12,LOW);shiftout(65);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(136);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case47()        //孔子广场->东南门         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(12);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(56);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case48()        //孔子广场->M栋         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(4);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(56);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case49()        //外国语学院->国教学院         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(5);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case50()        //外国语学院->海院         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(60);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);delay(100);
}
void case51()         //外国语学院->南航医院        
{ digitalWrite(a12,LOW);shiftout(38);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(124);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case52()        //外国语学院->综合实验楼         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(124);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case53()        //外国语学院->D栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(35);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(124);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case54()        //外国语学院->商业街         
{ digitalWrite(a12,LOW);shiftout(193);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(140);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case55()        //外国语学院->A栋         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(124);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case56()        //外国语学院->一食堂         
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(124);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case57()        //外国语学院->二食堂         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(140);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case58()        //外国语学院->体育馆   
{ digitalWrite(a12,LOW);shiftout(8);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(124);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case59()        //外国语学院->体育学院         
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(124);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);delay(100);
}
void case60()        //外国语学院->三食堂         
{ digitalWrite(a12,LOW);shiftout(65);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(140);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case61()        //外国语学院->东南门         
{ digitalWrite(a12,LOW);shiftout(193);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(140);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case62()        //外国语学院->M栋         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(4);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(60);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case63()       //国教->海院         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(49);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case64()       //国教->南航医院         
{ digitalWrite(a12,LOW);shiftout(38);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(113);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case65()       //国教->综合实验楼         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(113);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case66()       //国教->D栋         
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(35);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(113);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case67()       //国教->商业街         
{ digitalWrite(a12,LOW);shiftout(193);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(153);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case68()       //国教->A栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(113);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case69()       //国教->一食堂
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(113);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case70()       //国教->二食堂
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(153);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case71()       //国教->体育馆
{ digitalWrite(a12,LOW);shiftout(8);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(195);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(113);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case72()       //国教->体育学院
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(113);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case73()       //国教->三食堂
{ digitalWrite(a12,LOW);shiftout(65);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(153);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}void case74()       //国教->东南门
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(12);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(49);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}void case75()       //国教->M栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(4);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(61);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}void case76()        //海院->南航医院
{ digitalWrite(a12,LOW);shiftout(38);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(96);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case77()        //海院->综合实验楼
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(96);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case78()        //海院->D栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(35);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(96);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case79()        //海院->商业街
{ digitalWrite(a12,LOW);shiftout(193);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(96);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case80()        //海院->A栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(96);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case81()        //海院->一食堂
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(96);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case82()        //海院->二食堂
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(224);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case83()        //海院->体育馆
{ digitalWrite(a12,LOW);shiftout(8);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(96);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case84()        //海院->体育学院
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(96);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case85()        //海院->三食堂
{ digitalWrite(a12,LOW);shiftout(65);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(224);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case86()        //海院->东南门
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(12);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(32);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case87()        //海院->M栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(4);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(32);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(127);digitalWrite(a3,HIGH);
}
void case88()       //南航医院->综合实验楼
{ digitalWrite(a12,LOW);shiftout(38);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(64);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case89()       //南航医院->D栋
{ digitalWrite(a12,LOW);shiftout(56);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(96);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case90()       //南航医院->商业街
{ digitalWrite(a12,LOW);shiftout(160);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case91()       //南航医院->A栋
{ digitalWrite(a12,LOW);shiftout(56);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(32);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case92()       //南航医院->一食堂
{ digitalWrite(a12,LOW);shiftout(36);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case93()       //南航医院->二食堂
{ digitalWrite(a12,LOW);shiftout(38);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(128);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case94()       //南航医院->体育馆
{ digitalWrite(a12,LOW);shiftout(56);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case95()       //南航医院->体育学院
{ digitalWrite(a12,LOW);shiftout(48);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case96()       //南航医院->三食堂
{ digitalWrite(a12,LOW);shiftout(96);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case97()       //南航医院->东南门
{ digitalWrite(a12,LOW);shiftout(56);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(120);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case98()       //南航医院->M栋
{ digitalWrite(a12,LOW);shiftout(38);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(166);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case99()         //综合实验楼->D栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(35); digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(64);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case100()         //综合实验楼->商业街
{ digitalWrite(a12,LOW);shiftout(193);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(192);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shiftout(0);digitalWrite(a3,HIGH);
}
void case101()         //综合实验楼->A栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(64);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case102()         //综合实验楼->一食堂
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(128);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(64);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case103()         //综合实验楼->二食堂
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(192);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case104()         //综合实验楼->体育馆
{ digitalWrite(a12,LOW);shiftout(8);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(64);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case105()         //综合实验楼->体育学院
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(99);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(64);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case106()         //综合实验楼->三食堂
{ digitalWrite(a12,LOW);shiftout(65);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(192);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case107()         //综合实验楼->东南门
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(12);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(96);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case108()         //综合实验楼->M栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(7);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(64);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case109()       //D栋->商业街
{ digitalWrite(a12,LOW);shiftout(199);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(32);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case110()       //D栋->A栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(96);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case111()       //D栋->一食堂
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(160);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case112()       //D栋->二食堂
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(160);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(192);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case113()       //D栋->体育馆
{ digitalWrite(a12,LOW);shiftout(8);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(96);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case114()       //D栋->体育学院
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(96);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case115()       //D栋->三食堂
{ digitalWrite(a12,LOW);shiftout(71);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(32);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case116()       //D栋->东南门
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(56);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case117()       //D栋->M栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(38);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case118()      //商业街->A栋
{ digitalWrite(a12,LOW);shiftout(199);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(64);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case119()      //商业街->一食堂
{ digitalWrite(a12,LOW);shiftout(197);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(0);digitalWrite(a3,HIGH);
}
void case120()      //商业街->二食堂
{ digitalWrite(a12,LOW);shiftout(192);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case121()      //商业街->体育馆
{ digitalWrite(a12,LOW);shiftout(184);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case122()      //商业街->体育学院
{ digitalWrite(a12,LOW);shiftout(176);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case123()      //商业街->三食堂
{ digitalWrite(a12,LOW);shiftout(192);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case124()      //商业街->东南门
{ digitalWrite(a12,LOW);shiftout(199);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(56);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case125()      //商业街->M栋
{ digitalWrite(a12,LOW);shiftout(193);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shiftout(184);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case126()       //A栋->一食堂
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(64);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case127()      //A栋->二食堂
{ digitalWrite(a12,LOW);shiftout(2);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(64);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(128);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case128()      //A栋->体育馆
{ digitalWrite(a12,LOW);shiftout(8);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(64);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case129()      //A栋->体育学院
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(64);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case130()      //A栋->三食堂
{ digitalWrite(a12,LOW);shiftout(71);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(64);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case131()      //A栋->东南门
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(120);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case132()      //A栋->M栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(102);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case133()      //一食堂->二食堂
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(128);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case134()      //一食堂->体育馆
{ digitalWrite(a12,LOW);shiftout(14);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(64);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case135()      //一食堂->体育学院
{ digitalWrite(a12,LOW);shiftout(20);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case136()      //一食堂->三食堂
{ digitalWrite(a12,LOW);shiftout(69);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case137()      //一食堂->东南门
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(120);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case138()      //一食堂->M栋
{ digitalWrite(a12,LOW);shiftout(6);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(102);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case139()      //二食堂->体育馆
{ digitalWrite(a12,LOW);shiftout(10);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(64);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(128);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case140()      //二食堂->体育学院
{ digitalWrite(a12,LOW);shiftout(22);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(128);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case141()      //二食堂->三食堂
{ digitalWrite(a12,LOW);shiftout(65);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(128);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case142()      //二食堂->东南门
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(12);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(192);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case143()      //二食堂->M栋
{ digitalWrite(a12,LOW);shiftout(0);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(4);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(192);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case144()       //体育馆->体育学院
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case145()       //体育馆->三食堂
{ digitalWrite(a12,LOW);shiftout(120);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case146()       //体育馆->东南门
{ digitalWrite(a12,LOW);shiftout(8);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(120);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case147()       //体育馆->M栋
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(70);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case148()      //体育学院->三食堂
{ digitalWrite(a12,LOW);shiftout(96);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(0);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case149()      //体育学院->东南门
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(120);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case150()      //体育学院->M栋
{ digitalWrite(a12,LOW);shiftout(24);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(70);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case151()        //三食堂->东南门
{ digitalWrite(a12,LOW);shiftout(71);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(120);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void case152()        //三食堂->M栋
{ digitalWrite(a12,LOW);shiftout(71);digitalWrite(a12,HIGH);delay(100);digitalWrite(a9,LOW);shift1out(70);digitalWrite(a9,HIGH);delay(100);digitalWrite(a6,LOW);shift2out(0);digitalWrite(a6,HIGH);delay(100);digitalWrite(a3,LOW);shift3out(63);digitalWrite(a3,HIGH);
}
void loop(){digitalWrite(ledPin, HIGH); //点亮小灯delay(1000); //延时1 秒digitalWrite(ledPin, LOW); //熄灭小灯delay(1000); // 延时1 秒if (Serial.available() > 0)//读取串口数据{Serial.readBytes(buffer, 2);Serial.flush();switch (buffer[0]){  case 0x01: case1(); delay(100); break;case 0x02: case2(); delay(100);  break;case 0x03: case3(); delay(100);  break;case 0x04: case4(); delay(100);  break;case 0x05: case5(); delay(100);  break;case 0x06: case6(); delay(100);  break;case 0x07: case7(); delay(100);  break;case 0x08: case8(); delay(100);  break;case 0x09: case9(); delay(100);  break;case 0x0A: case10(); delay(100);  break;case 0x0B: case11(); delay(100);  break;case 0x0C: case12(); delay(100);  break;case 0x0D: case13(); delay(100);  break;case 0x0E: case14(); delay(100);  break;case 0x0F: case15(); delay(100);  break;case 0x10: case16(); delay(100);  break;case 0x11: case17(); delay(100);  break;case 0x12: case18(); delay(100);  break;case 0x13: case19(); delay(100);  break;case 0x14: case20(); delay(100);  break;case 0x15: case21(); delay(100);  break;case 0x16: case22(); delay(100);  break;case 0x17: case23(); delay(100);  break;case 0x18: case24(); delay(100);  break;case 0x19: case25(); delay(100);  break;case 0x1A: case26(); delay(100);  break;case 0x1B: case27(); delay(100);  break;case 0x1C: case28(); delay(100);  break;case 0x1D: case29(); delay(100);  break;case 0x1E: case30(); delay(100);  break;case 0x1F: case31(); delay(100);  break;case 0x20: case32(); delay(100);  break;case 0x21: case33(); delay(100);  break;case 0x22: case34(); delay(100);  break;case 0x23: case35(); delay(100);  break;case 0x24: case36(); delay(100);  break;case 0x25: case37(); delay(100);  break;case 0x26: case38(); delay(100);  break;case 0x27: case39(); delay(100);  break;case 0x28: case40(); delay(100);  break;case 0x29: case41(); delay(100);  break;case 0x2A: case42(); delay(100);  break;case 0x2B: case43(); delay(100);  break;case 0x2C: case44(); delay(100);  break;case 0x2D: case45(); delay(100);  break;case 0x2E: case46(); delay(100);  break;case 0x2F: case47(); delay(100);  break;case 0x30: case48(); delay(100);  break;case 0x31: case49(); delay(100);  break;case 0x32: case50(); delay(100);  break;case 0x33: case51(); delay(100);  break;case 0x34: case52(); delay(100);  break;case 0x35: case53(); delay(100);  break;case 0x36: case54(); delay(100);  break;case 0x37: case55(); delay(100);  break;case 0x38: case56(); delay(100);  break;case 0x39: case57(); delay(100);  break;case 0x3A: case58(); delay(100);  break;case 0x3B: case59(); delay(100);  break;case 0x3C: case60(); delay(100);  break;case 0x3D: case61(); delay(100);  break;case 0x3E: case62(); delay(100);  break;case 0x3F: case63(); delay(100);  break;case 0x40: case64(); delay(100);  break;case 0x41: case65(); delay(100);  break;case 0x42: case66(); delay(100);  break;case 0x43: case67(); delay(100);  break;case 0x44: case68(); delay(100);  break;case 0x45: case69(); delay(100);  break;case 0x46: case70(); delay(100);  break;case 0x47: case71(); delay(100);  break;case 0x48: case72(); delay(100);  break;case 0x49: case73(); delay(100);  break;case 0x4A: case74(); delay(100);  break;case 0x4B: case75(); delay(100);  break;case 0x4C: case76(); delay(100);  break;case 0x4D: case77(); delay(100);  break;case 0x4E: case78(); delay(100);  break;case 0x4F: case79(); delay(100);  break;case 0x50: case80(); delay(100);  break;case 0x51: case81(); delay(100);  break;case 0x52: case82(); delay(100);  break;case 0x53: case83(); delay(100);  break;case 0x54: case84(); delay(100);  break;case 0x55: case85(); delay(100);  break;case 0x56: case86(); delay(100);  break;case 0x57: case87(); delay(100);  break;case 0x58: case88(); delay(100);  break;case 0x59: case89(); delay(100);  break;case 0x5A: case90(); delay(100);  break;case 0x5B: case91(); delay(100);  break;case 0x5C: case92(); delay(100);  break;case 0x5D: case93(); delay(100);  break;case 0x5E: case94(); delay(100);  break;case 0x5F: case95(); delay(100);  break;case 0x60: case96(); delay(100);  break;case 0x61: case97(); delay(100);  break;case 0x62: case98(); delay(100);  break;case 0x63: case99(); delay(100);  break;case 0x64: case100(); delay(100);  break;case 0x65: case101(); delay(100);  break;case 0x66: case102(); delay(100);  break;case 0x67: case103(); delay(100);  break;case 0x68: case104(); delay(100);  break;case 0x69: case105(); delay(100);  break;case 0x6A: case106(); delay(100);  break;case 0x6B: case107(); delay(100);  break;case 0x6C: case108(); delay(100);  break;case 0x6D: case109(); delay(100);  break;case 0x6E: case110(); delay(100);  break;case 0x6F: case111(); delay(100);  break;case 0x70: case112(); delay(100);  break;case 0x71: case113(); delay(100);  break;case 0x72: case114(); delay(100);  break;case 0x73: case115(); delay(100);  break;case 0x74: case116(); delay(100);  break;case 0x75: case117(); delay(100);  break;case 0x76: case118(); delay(100);  break;case 0x77: case119(); delay(100);  break;case 0x78: case120(); delay(100);  break;case 0x79: case121(); delay(100);  break;case 0x7A: case122(); delay(100);  break;case 0x7B: case123(); delay(100);  break;case 0x7C: case124(); delay(100);  break;case 0x7D: case125(); delay(100);  break;case 0x7E: case126(); delay(100);  break;case 0x7F: case127(); delay(100);  break;case 0x80: case128(); delay(100);  break;case 0x81: case129(); delay(100);  break;case 0x82: case130(); delay(100);  break;case 0x83: case131(); delay(100);  break;case 0x84: case132(); delay(100);  break;case 0x85: case133(); delay(100);  break;case 0x86: case134(); delay(100);  break;case 0x87: case135(); delay(100);  break;case 0x88: case136(); delay(100);  break;case 0x89: case137(); delay(100);  break;case 0x8A: case138(); delay(100);  break;case 0x8B: case139(); delay(100);  break;case 0x8C: case140(); delay(100);  break;case 0x8D: case141(); delay(100);  break;case 0x8E: case142(); delay(100);  break;case 0x8F: case143(); delay(100);  break;case 0x90: case144(); delay(100);  break;case 0x91: case145(); delay(100);  break;case 0x92: case146(); delay(100);  break;case 0x93: case147(); delay(100);  break;case 0x94: case148(); delay(100);  break;case 0x95: case149(); delay(100);  break;case 0x96: case150(); delay(100);  break;case 0x97: case151(); delay(100);  break;case 0x98: case152(); delay(100);  break;case 0x99: clean(); delay(100);  break;case 0x9A: check(); delay(100);  break;default: Serial.print(buffer[0]); break;}}
}

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/474220.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

LeetCode 1563. 石子游戏 V(DP)

文章目录1. 题目2. 解题2.1 区间DP1. 题目 几块石子 排成一行 &#xff0c;每块石子都有一个关联值&#xff0c;关联值为整数&#xff0c;由数组 stoneValue 给出。 游戏中的每一轮&#xff1a; Alice 会将这行石子分成两个 非空行&#xff08;即&#xff0c;左侧行和右侧行…

个人简历小程序

为了熟练掌握微信小程序开发的一些基本技巧&#xff0c;熟悉微信小程序开发流程&#xff0c;特此&#xff0c;运用所学知识&#xff0c;做了一个个人简历小程序。 效果图如下&#xff1a; 代码如下&#xff1a; ① index.jsconst app getApp() Page({ data: { userInfo: {}…

Android的Fragment介绍

前言 fragment是从android3.0开始提出来的&#xff0c;用来支持大屏幕设备的ui设计。通过将activity划分为多个fragment&#xff0c;不仅提高了设计的灵活性&#xff0c;而且可以在程序运行时改变它们的特征&#xff0c;比如动态的修改&#xff0c;替换已有的fragment等等。 fr…

[Kaggle] Heart Disease Prediction

文章目录1. 数据探索2. 特征处理管道3. 训练模型4. 预测kaggle项目地址1. 数据探索 import pandas as pd train pd.read_csv(./train.csv) test pd.read_csv(./test.csv)train.info() test.info() abs(train.corr()[target]).sort_values(ascendingFalse)<class pandas.c…

01.神经网络和深度学习 W2.神经网络基础

文章目录1. 二分类2. 逻辑回归3. 逻辑回归损失函数4. 梯度下降5. 导数6. 计算图导数计算7. 逻辑回归中的梯度下降8. m个样本的梯度下降9. 向量化10. 向量化的更多例子11. 向量化 logistic 回归12. 向量化 logistic 回归梯度输出13. numpy 广播机制14. 关于 python / numpy 向量…

Oracle数据库物理存储结构管理遇到的问题与解决

问题一&#xff1a;当我创建一个重做日志文件放入重做日志文件组中的时候&#xff0c;查询数据字典发现新创建的重做日志文件的状态为“不合法”。 解决方案&#xff1a; 通过查阅相关资料了解到 新建的重做日志文件组成员状态为INVALID,这是由于新建的成员文件还没有被…

01.神经网络和深度学习 W3.浅层神经网络

文章目录1. 神经网络概览2. 神经网络的表示3. 神经网络的输出4. 多样本向量化5. 激活函数6. 为什么需要 非线性激活函数7. 激活函数的导数8. 随机初始化作业参考&#xff1a; 吴恩达视频课 深度学习笔记 1. 神经网络概览 xW[1]b[1]}⟹z[1]W[1]xb[1]⟹a[1]σ(z[1])\left.\begin…

01.神经网络和深度学习 W2.神经网络基础(作业:逻辑回归 图片识别)

文章目录编程题 11. numpy 基本函数1.1 编写 sigmoid 函数1.2 编写 sigmoid 函数的导数1.3 reshape操作1.4 标准化1.5 广播机制2. 向量化2.1 L1\L2损失函数编程题 2. 图片&#x1f431;识别1. 导入包2. 数据预览3. 算法的一般结构4. 建立算法4.1 辅助函数4.2 初始化参数4.3 前向…

PL/SQL程序设计以及安全管理实验遇到的问题及解决

问题一&#xff1a;当我书写PL/SQL语句调用所创建的函数时&#xff0c;报“此范围不存在名为XXX函数名”的错误。 解决&#xff1a; 我通过查阅相关资料&#xff0c;了解到&#xff1a;这种情况主要是调用的函数的参数或者函数名书写错误&#xff0c; 然而&#xff0c;我经过仔…

PowerDesigner使用教程 —— 概念数据模型 (转)

一、概念数据模型概述 概念数据模型也称信息模型&#xff0c;它以实体&#xff0d;联系(Entity-RelationShip,简称E-R)理论为基础&#xff0c;并对这一理论进行了扩充。它从用户的观点出发对信息进行建模&#xff0c;主要用于数据库的概念级设计。 通常人们先将现实世界抽…

阿里云 超级码力在线编程大赛初赛 第1场(第245名)

文章目录1. 比赛结果2. 题目1. 树木规划2. 正三角形拼接3. 大楼间穿梭4. 对称前后缀1. 比赛结果 通过了 3 题&#xff0c;第245名&#xff0c;进入复赛了&#xff0c;收获 T恤 一件&#xff0c;哈哈。 2. 题目 1. 树木规划 题目链接 描述 在一条直的马路上&#xff0c;…

01.神经网络和深度学习 W3.浅层神经网络(作业:带一个隐藏层的神经网络)

文章目录1. 导入包2. 预览数据3. 逻辑回归4. 神经网络4.1 定义神经网络结构4.2 初始化模型参数4.3 循环4.3.1 前向传播4.3.2 计算损失4.3.3 后向传播4.3.4 梯度下降4.4 组建Model4.5 预测4.6 调节隐藏层单元个数4.7 更改激活函数4.8 更改学习率4.9 其他数据集下的表现选择题测试…

[编程启蒙游戏] 2. 奇偶数

文章目录1. 游戏前提2. 游戏目的3. python代码1. 游戏前提 孩子知道奇偶数是什么&#xff0c;不知道也没关系 还可以采用掰手指演示&#xff0c;伸出两个手指能配对&#xff0c;所有伸出来的手指都两两配对了&#xff0c;伸出来的手指个数就是偶数如果还有1个没有找到朋友的手…

过压保护(1)

征一个简单、可靠的电源过压保护电路 http://www.amobbs.com/thread-5542005-1-1.html 防过压&#xff1a;过压之后TVS导通&#xff0c;电流由正极流经自恢复保险再流经TVS到负极&#xff0c;自恢复保险升温&#xff0c;阻值变大&#xff0c;相当于断开&#xff0c;等电流撤去&…

spring boot+thmyleaf ModelAndView页面传值

如上图所示&#xff0c;当我们从后台通过ModelAndView进行传值的时候&#xff0c; 一定要注意&#xff0c;千万不要向上图那样开头加上反斜杠&#xff0c;开头加反斜杠&#xff0c;系统会默认为相对路径&#xff0c; 虽然也能找到相应的视图&#xff08;html&#xff09;&#…

LeetCode 214. 最短回文串(字符串哈希)

文章目录1. 题目2. 解题1. 题目 给定一个字符串 s&#xff0c;你可以通过在字符串前面添加字符将其转换为回文串。 找到并返回可以用这种方式转换的最短回文串。 示例 1: 输入: "aacecaaa" 输出: "aaacecaaa"示例 2: 输入: "abcd" 输出: "…

转:c#委托事件实现窗体传值通信

C#实现Winform窗口间数据交互的三种方法介绍 2010-03-15 来自&#xff1a;CNBLOG 字体大小&#xff1a;【大 中 小】摘要&#xff1a;本文分别介绍C#实现Winform窗口间数据交互的三种方法&#xff1a;修改子窗体的构造函数、给窗体添加属性或方法、通过委托的方法&#xff0c…

LeetCode 1566. 重复至少 K 次且长度为 M 的模式

文章目录1. 题目2. 解题1. 题目 给你一个正整数数组 arr&#xff0c;请你找出一个长度为 m 且在数组中至少重复 k 次的模式。 模式 是由一个或多个值组成的子数组&#xff08;连续的子序列&#xff09;&#xff0c;连续 重复多次但 不重叠 。 模式由其长度和重复次数定义。 …