ojixzzz / WT5001M02-28P MP3 SOUND ARDUINO

18 Jun 2019 at 07:19

1 void setup() {
2 Serial.begin(9600);
3
4 // set volume
5 Serial.write(0x7E);
6 Serial.write(0x03);
7 Serial.write(0xA7);
8 Serial.write(0x1C); //29 dari 31
9 Serial.write(0x7E);
10
11 // start sound
12 Serial.write(0x7E);
13 Serial.write(0x04);
14 Serial.write(0xA0);
15 Serial.write((byte)0x00);
16 Serial.write(0x03); // nomor lagu
17 Serial.write(0x7E);
18 delay(3000);
19 }
20
21 void loop() {
22 }

Comments (0)