nlsgarcia |
11-06-2015 07:42:01 |
Aprender a programar un Arduino OnLine
Club Delphi,
Cita:
Empezado por UnoCero
... Los Arduinos son pequeñas computadoras, las cuales tienen puertos de entrada y salida, así como pines para conectar una variedad de componentes electrónicos...en Electronics from beginner to pro se tienen todos estos componentes de manera virtual, así como diferentes tipos de Arduino e incluso protoboards, donde se conectan los componentes cuando se hace un prototipo...
|
:rolleyes:
Un ejemplo básico de programación de Arduino OnLine:
Código PHP:
// Test Circuit-1 (Leds) // // Made by nelson garcia // License: GPL 3.0 // Downloaded from: https://123d.circuits.io/circuits/859172-test-circuit-1-leds
// Program Test Circuit-1 (Leds) // Pin 1,2 and 3 has an LED connected on most Arduino boards. int ledblue = 1; int ledgreen = 2; int ledred = 3;
// the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(ledblue, OUTPUT); pinMode(ledgreen, OUTPUT); pinMode(ledred, OUTPUT); }
// the loop routine runs over and over again forever: void loop() { // turn the LED on (HIGH is the voltage level) digitalWrite(ledred, HIGH); digitalWrite(ledgreen, HIGH); digitalWrite(ledblue, HIGH); delay(500); // turn the LED off by making the voltage LOW digitalWrite(ledblue, LOW); digitalWrite(ledgreen, LOW); digitalWrite(ledred, LOW); delay(500); }
Ver la noticia completa en : Cómo aprender a programar un Arduino en línea y de forma gratuita
Información relacionada:
^\||/
Nelson.
|