User:Zalán Szakács/grad prototyping: Difference between revisions

From XPUB & Lens-Based wiki
Line 22: Line 22:
==How to use Arduino? ==
==How to use Arduino? ==


'''1. Arduino Script'''
<pre>
<pre>



Revision as of 10:40, 2 October 2018


P R O T O T Y P I N G

What is a Circuit?


What are Resistors?


conversion calculator resistor color code

How to use Arduino?

1. Arduino Script


*
 * Zalan's first Program
 */

 int ledPin = 13;
 void setup()
 { 
  //initialize pins as outputs
  pinMode(ledPin, OUTPUT);
 }
void loop()
{ 
  digitalWrite(ledPin, HIGH);
  delay(1000);
  digitalWrite(ledPin, LOW);
  delay(1000);
}

Light-Emitting Diodes (LEDs)