daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top