Go Down

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

crimelobster

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. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

crimelobster

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