I just started using Arduino, and was wondering what is wrong with this code. I am sure it has to do something with the boolean and const byte buttons line, but I can't figure it out. BTW I am a total newb at this so dont make fun of me XD
#include <Esplora.h>
boolean buttonStates[1];
const byte buttons[] = {
SWITCH_DOWN,
};
void setup()
{
Serial.begin(9600);
}
void loop()
{
int fahrenheit = Esplora.readTemperature(DEGREES_F);
if (SWITCH_DOWN == PRESSED) {
Serial.print("It is ");
Serial.print(fahrenheit);
Serial.println(" degrees.");
delay(1000);
}
}