Show Posts
Pages: [1]
1  Products / The Arduino Starter Kit / Project 08 - Digital Hourglass tilt switch issue on: January 05, 2013, 12:29:47 am
The tilt switch included in my kit has really short pins. Due to this, I can't seem to get the switch to stay on the breadboard. Anyone else have this issue or have an idea how I can get around this?

Thanks!
2  Products / The Arduino Starter Kit / Re: Project 07 Keyboard Instrument on: January 02, 2013, 01:13:43 am
I was pretty confused about the buttons array as well. Since it's never used again in the code I figured it was some sort of example of how to use arrays? Odd because they don't do anything like that in the rest of the book. I completely removed both lines of code from my sketch and it complied without a problem.

Now that I looked at it again, I think you are correct. There aren't any line numbers next to the buttons array, but the notes array starts with line 1; so it's probably just there for explaining arrays (except for the fact that 'int buttons[0] = 2' seems incorrect to me).
3  Products / The Arduino Starter Kit / Re: Project 07 Keyboard Instrument on: January 01, 2013, 03:41:12 pm
I think that may be a typo in the book (I see it in mine as well). AWOL's suggestion would fix it, or you could move 'int buttons[0] = 2' into the setup method and drop the int declaration.

e.g.:
Code:
void setup() {
  buttons[0] = 2;
  Serial.begin(9600);
}
Pages: [1]