RSS

Haciendo amigos: Arduino y vvvv

Vie, ene 2, 2009

Laboratorio, Taller, Tutoriales

Realizando el típico “Hello World” entre la placa Arduino y el vvvv. Después de largo tiempo, nos decidimos a probar los tutoriales que están en la página de vvvv. En este ejemplo la Arduino le envía un mensaje de bienvenida al vvvv.

Aquí está el parche del vvvv y a continuación el código de la Arduino.

/* say hello “world” to vvvv and blinking LED
* ------------
*
* sends an string via serial port to vvvv
* the classic hello word example
* plus lets a led on digital pin 13 blinkin
*
* 17-01-2006
* copyleft 2006 benedikt gross
*
*/

int ledPin = 13; // LED connected to digital pin 13

void setup()
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
beginSerial(9600); // initializes serial port
}

void loop()
{
printString("hello VVVV"); // sends a string via the serial port
//linebreak
serialWrite(10); // sends '\n' = ASCII 10
serialWrite(13); // sends '\r' = ASCII 13

digitalWrite(ledPin, HIGH); // sets the LED on
delay(100); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(100); // waits for a second
}

Compártelo:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • BarraPunto
  • Bitacoras.com
  • BlinkList
  • blogmarks
  • BlogMemes Sp
  • Blogosphere News
  • blogtercimlap
  • co.mments
  • connotea
  • Current
  • Design Float
  • Diigo
  • DotNetKicks
  • DZone
  • eKudos
  • email
  • Fark
  • Faves
  • Fleck
  • FriendFeed
  • FSDaily
  • Global Grind
  • Gwar
  • HackerNews
  • Haohao
  • HealthRanker
  • HelloTxt
  • Hemidemi
  • Hyves
  • Identi.ca
  • IndianPad
  • Internetmedia
  • Kirtsy
  • laaik.it
  • LinkaGoGo
  • LinkArena
  • LinkedIn
  • Linkter
  • Live
  • Meneame
  • MisterWong
  • MSN Reporter
  • muti
  • MyShare
  • MySpace
  • N4G
  • Netvibes
  • Netvouz
  • NewsVine
  • NuJIJ
  • PDF
  • Ping.fm
  • Posterous
  • ppnow
  • Propeller
  • Ratimarks
  • Rec6
  • Reddit
  • RSS
  • Scoopeo
  • Segnalo
  • Simpy
  • Slashdot
  • Socialogs
  • SphereIt
  • StumbleUpon
  • Symbaloo
  • Suggest to Techmeme via Twitter
  • Technorati
  • ThisNext
  • Tipd
  • Tumblr
  • Twitter
  • Upnews
  • Webnews.de
  • Webride
  • Wikio
  • Wikio FR
  • Wikio IT
  • Wists
  • Wykop
  • Xerpi
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • Yigg

Este envío fue escrito por :

Daniel Argente - a enviado 18 entradas a Bitmondo.


Contactar al autor

Deje una respuesta