You are on page 1of 3

LED PATTERN USING ARDUINO

JOSHUA Q. ONZA
MATT FREDERICK S. IBASAN
ALJON ZAMBALE
JOHN LLOYD SORIANO
VINCE MIGUEL SAPLAN
RYAN CRISTIAN FERNANDEZ
JAYSON MENDOZA
LEONARDO LONGAY
IAN MANUEL BAUTOS
EDDIESON FLORES

ENGR. JESSON S. ANTON


ARDUINO PROGRAMMING

Setup() −called when a sketch starts running


−use it to initialize
variables,
pin modes,
start using libraries
−will only run once, after each powerup or reset of the Arduino board

Loop() −Executed repeatedly


−Allows the program to change and respond.

pinMode(pin, mode) –Configures a digital pin to behave either as an input or an output


–pin: the pin number whose mode you wish to set
–mode: either INPUT or OUTPUT

digitalWrite(pin, value) –Write a HIGH or a LOW value to a digital pin


–pin: the pin number whose value you wish to set
–value: either HIGH or LOW
delay(value) –Pauses the program for the amount of time
–value: the number of milliseconds to pause

You might also like