Advertisement
jasirgo

Enviar datos con modulo Bluetooth para Arduino

Jul 8th, 2013
16,459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. //Enviar datos con modulo Bluetooth para Arduino http://zygzax.com/
  2. #include <SoftwareSerial.h>
  3. SoftwareSerial blue(2, 3);
  4. int pot=0;
  5. void setup(){
  6.   blue.begin(9600);
  7.   blue.println("Conectado");
  8. }
  9. void loop(){
  10.  pot=analogRead(0);
  11.   blue.println(pot);
  12.   delay(1000);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement