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;}}
}