Go Down

Topic: A question about some code. (Read 543 times) previous topic - next topic

Hi. This is my first forum post. I do not currently own an Arduino, but I am already creating a code for a project. Nothing I need is immediate.

Where would you put the code for a PIR sensor in a code for an LED light show. I just do not know how it would be coded. Any advice would be appreciated.

CrossRoads

The short answer might be:
the code goes within
Code: [Select]

void loop()
{
// your code here
}

The real answer:  You have not provided enough info as to what the code is to do.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

The code will be used so that when you walk into the room, a light show starts. I just have no idea how to code it.

AWOL

#3
Jul 21, 2012, 06:51 pm Last Edit: Jul 21, 2012, 07:20 pm by AWOL Reason: 1
If you open the IDE, and go to the "file" you'll find lots of examples of how to program different devices.
Is the "LED light show" anything to do with this?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy