Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   La Taberna (https://www.clubdelphi.com/foros/forumdisplay.php?f=40)
-   -   Aprender a programar un Arduino OnLine (https://www.clubdelphi.com/foros/showthread.php?t=88478)

nlsgarcia 11-06-2015 08: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(ledblueOUTPUT);
  
pinMode(ledgreenOUTPUT);
  
pinMode(ledredOUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  
// turn the LED on (HIGH is the voltage level)
  
digitalWrite(ledredHIGH);
  
digitalWrite(ledgreenHIGH);   
  
digitalWrite(ledblueHIGH);   
  
delay(500);               
  
// turn the LED off by making the voltage LOW
  
digitalWrite(ledblueLOW);
  
digitalWrite(ledgreenLOW);
  
digitalWrite(ledredLOW); 
  
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.


La franja horaria es GMT +2. Ahora son las 20:41:11.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi