Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SoftwareSerial.h>
- SoftwareSerial BTserial(10, 11); // RX | TX
- void setup() {
- // initialize serial communication at 9600 bits per second:
- BTserial.begin(9600);
- }
- void loop() {
- // read the input on analog pin 0:
- int sensorValue1 = analogRead(A0);
- int sensorValue2 = analogRead(A1);
- BTserial.print(sensorValue1);
- BTserial.print('|');
- BTserial.println(sensorValue2);
- delay(50);
- }
- D/BluetoothConnectionSrv: InputStream: 955|108
- D/BluetoothConnectionSrv: InputStream: 9
- D/BluetoothConnectionSrv: InputStream: 46|51
- D/BluetoothConnectionSrv: InputStream: 9
- D/BluetoothConnectionSrv: InputStream: 47|57
Add Comment
Please, Sign In to add comment