Guest User

Untitled

a guest
Jan 22nd, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #include <SoftwareSerial.h>
  2. SoftwareSerial BTserial(10, 11); // RX | TX
  3.  
  4. void setup() {
  5. // initialize serial communication at 9600 bits per second:
  6. BTserial.begin(9600);
  7. }
  8.  
  9. void loop() {
  10. // read the input on analog pin 0:
  11. int sensorValue1 = analogRead(A0);
  12. int sensorValue2 = analogRead(A1);
  13. BTserial.print(sensorValue1);
  14. BTserial.print('|');
  15. BTserial.println(sensorValue2);
  16. delay(50);
  17. }
  18.  
  19. D/BluetoothConnectionSrv: InputStream: 955|108
  20. D/BluetoothConnectionSrv: InputStream: 9
  21. D/BluetoothConnectionSrv: InputStream: 46|51
  22. D/BluetoothConnectionSrv: InputStream: 9
  23. D/BluetoothConnectionSrv: InputStream: 47|57
Add Comment
Please, Sign In to add comment