Yes, this is a very noob-ish question but I've been wrestling with it all afternoon.
// Danger Board v1.0 Button Lightup Script
// By: Zach Hoeken (hoeken@gmail.com)
// More info: make.nycresistor.com/ds-1.0#include "_init.h"
void setup()
{
ds_init();
}//our button state variables
boolean button1State = false;
boolean button2State = false;
boolean button3State = false;void loop()
{
//read all our buttons
button1State = digitalRead(BUTTON1_PIN);
button2State = digitalRead(BUTTON2_PIN);
button3State = digitalRead(BUTTON3_PIN);//write all our LEDS
digitalWrite(SLIDER1_LED_PIN, button1State);
digitalWrite(SLIDER2_LED_PIN, button2State);
digitalWrite(SLIDER3_LED_PIN, button3State);
}
^^^ That's what I was trying to compile/load to my Duemilanove, with the danger shield attached. Here's the compile errors I got:
C:\DOCUME~1\Jeff\LOCALS~1\Temp\build21085.tmp/_init.h: In function 'void ds_init()':
C:\DOCUME~1\Jeff\LOCALS~1\Temp\build21085.tmp/_init.h:35: error: 'INPUT' was not declared in this scope
C:\DOCUME~1\Jeff\LOCALS~1\Temp\build21085.tmp/_init.h:35: error: 'pinMode' was not declared in this scope
C:\DOCUME~1\Jeff\LOCALS~1\Temp\build21085.tmp/_init.h:40: error: 'OUTPUT' was not declared in this scope
C:\DOCUME~1\Jeff\LOCALS~1\Temp\build21085.tmp/_init.h:53: error: 'HIGH' was not declared in this scope
C:\DOCUME~1\Jeff\LOCALS~1\Temp\build21085.tmp/_init.h:53: error: 'digitalWrite' was not declared in this scope
C:\DOCUME~1\Jeff\LOCALS~1\Temp\build21085.tmp/_init.h:60: error: 'LOW' was not declared in this scope
C:\DOCUME~1\Jeff\LOCALS~1\Temp\build21085.tmp/_init.h:61: error: 'MSBFIRST' was not declared in this scope
C:\DOCUME~1\Jeff\LOCALS~1\Temp\build21085.tmp/_init.h:61: error: 'shiftOut' was not declared in this scope
C:\DOCUME~1\Jeff\LOCALS~1\Temp\build21085.tmp/_init.h:68: error: 'delayMicroseconds' was not declared in this scope
C:\DOCUME~1\Jeff\LOCALS~1\Temp\build21085.tmp/_init.h:85: error: 'Serial' was not declared in this scope
It seems that the arduino software keeps wanting to default to the temp file it keeps creating. I've created a "sketchbook" directory in the arduino folder, and it has a bunch of danger shield sketches in it, but the temp folder seems to be hijacking the sequence somehow. It'll go to the temp folder first, looking for definitions, instead of the sketchbook files.
Other info...usb connection to arduino, COM4 has been assigned, arduino with no shield attached will compile/upload/function no problem.
Thanks for whatever info you wizards might have! :