1
DAC-OUT +
N amplifier output
External speakers (3W) output
2
GND
Ground
Power Ground
3
VDD
power input
3.3V-5.4V
4
DAC-OUT-
Amplifier output negative
External speakers (3W) output
5
MUTE
Play a sound when a low level (L)
Mute Control
6
USB-DP
USB-DP
USB for playing and downloading music
7
USB-DM
USB-DM
USB for playing and downloading music
8
ADK
button
Multiple sets of keys ADK
9
TX
UART serial data output
TTL level (3.3V)
10
RX
UART serial data input
TTL level (3.3V)
یک برنامه نمونه:
کد:byte currentSound = 0x01; void setup() { // put your setup code here, to run once: // start serial port at 9600 bps: Serial.begin(9600); //while (!Serial) { // ; // wait for serial port to connect. Needed for native USB port only //} pinMode(2, INPUT); // digital sensor is on digital pin 2 } void loop() { // put your main code here, to run repeatedly: if(digitalRead(2)) { delay(10000); Serial.write(0x7E); Serial.write(0x04); Serial.write(0x41); Serial.write(0x00); Serial.write(currentSound); Serial.write(0xEF); delay(10000); currentSound = currentSound + 0x01; if(currentSound > 3) currentSound = 1; } }


LinkBack URL
About LinkBacks



پاسخ با نقل قول