Bluetooth+SBDBT | ↓挿入口↓ | |
---|
5 | PGEC1 | | STATUS | 10 |
---|
4 | PGED1 | | CTS | 9 |
---|
3 | GND | | RX | 8 |
---|
2 | VDD=3V | | TX | 7 |
---|
1 | RESET | | RTS | 6 |
---|
1
2
3
4
5
6
7
8
| Arduino arduino;
SBDBT sbdbt;
sbdbt.gnd = Arduino.gnd;
sbdbt.vdd = Arduino.3V ;
sbdbt.rx = Arduino.tx ;
sbdbt.tx = Arduino.rx ;
sbdbt.cts = sbdbt.rts ;
|
1
2
3
4
5
6
7
8
9
10
11
12
| int counter;
void setup() {
Serial.begin(9600);
counter = 0;
delay(100);
}
void loop() {
Serial.println(counter++);
delay(100);
}
|
|