Pages: [1]   Go Down
Author Topic: A question about some code.  (Read 467 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27145
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The short answer might be:
the code goes within
Code:

void loop()
{
// your code here
}
The real answer:  You have not provided enough info as to what the code is to do.
Logged

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.

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 303
Posts: 26354
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
« Last Edit: July 21, 2012, 12:20:10 pm by AWOL » Logged

"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.

Pages: [1]   Go Up
Jump to: