-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
27 lines (24 loc) · 906 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <iostream>
#include "audiocentre.h" //class audiocentre layer over playaudio
using namespace std;
audiocentre ac;
int main()
{
int res=0;
while (1)
{
cout << "========================BraillePiServer=====================" << endl;
ac.playfile("/home/pi/Documents/sound/general/basic/fullvolume/Complete_3.mp3");
int res=system("/home/pi/Documents/programs/BraillePiFramework/bin/Debug/./BraillePi");
res=res/256;
cout << "braillepiclient output " << res <<endl;
if (res==11)
{
ac.playfile("/home/pi/Documents/sound/general/basic/fullvolume/Notification_8.mp3");
int result=system("/home/pi/Documents/programs/setkeys/bin/Debug/./setkeys");
ac.playfile("/home/pi/Documents/sound/general/basic/fullvolume/Notification_8.mp3");
system("reboot");
};
}
return 0;
}