I have followed the tutorial at https://learn.adafruit.com/introducing- ... rduino-ide
The Gemma is lit and recognized by the Windows OS. When I try to upload the blink sketch I get the following errors:
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "Adafruit Gemma 8MHz"
gemmabliink.ino:17:1: error: invalid suffix "int" on floating constant
gemmabliink.ino:20:1: error: invalid suffix "void" on floating constant
gemmabliink.ino:27:1: error: invalid suffix "void" on floating constant
gemmabliink:16: error: expected unqualified-id before numeric constant
gemmabliink:18: error: expected unqualified-id before numeric constant
gemmabliink:25: error: expected unqualified-id before numeric constant
I have double and triple checked the steps but cannot figure out what I am doing wrong.
Any help is most appreciated.
Gemma with Neopixel ring.
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Gemma with Neopixel ring.
You have some stray characters or other syntax errors in your sketch. Please post the sketch and I'll see if I can spot them.
- jmh43081
- Posts: 3
- Joined: Sun Dec 28, 2014 11:15 am
Re: Gemma with Neopixel ring.
Thank You!
I copied the sketch from the tutorial.
/*
2. Blink
3. Turns on an LED on for one second, then off for one second, repeatedly.
4.
5. This example code is in the public domain.
6.
7. To upload to your Gemma or Trinket:
8. 1) Select the proper board from the Tools->Board Menu
9. 2) Select USBtinyISP from the Tools->Programmer
10. 3) Plug in the Gemma/Trinket, make sure you see the green LED lit
11. 4) For windows, install the USBtiny drivers
12. 5) Press the button on the Gemma/Trinket - verify you see
13. the red LED pulse. This means it is ready to receive data
14. 6) Click the upload button above within 10 seconds
15.*/
17.int led = 1; // blink 'digital' pin 1 - AKA the built in red LED
18.
19.// the setup routine runs once when you press reset:
20.void setup() {
21. // initialize the digital pin as an output.
22. pinMode(led, OUTPUT);
23.
24.}
25.
26.// the loop routine runs over and over again forever:
27.void loop() {
28. digitalWrite(led, HIGH);
29. delay(1000);
30. digitalWrite(led, LOW);
31. delay(1000);
32.}
I copied the sketch from the tutorial.
/*
2. Blink
3. Turns on an LED on for one second, then off for one second, repeatedly.
4.
5. This example code is in the public domain.
6.
7. To upload to your Gemma or Trinket:
8. 1) Select the proper board from the Tools->Board Menu
9. 2) Select USBtinyISP from the Tools->Programmer
10. 3) Plug in the Gemma/Trinket, make sure you see the green LED lit
11. 4) For windows, install the USBtiny drivers
12. 5) Press the button on the Gemma/Trinket - verify you see
13. the red LED pulse. This means it is ready to receive data
14. 6) Click the upload button above within 10 seconds
15.*/
17.int led = 1; // blink 'digital' pin 1 - AKA the built in red LED
18.
19.// the setup routine runs once when you press reset:
20.void setup() {
21. // initialize the digital pin as an output.
22. pinMode(led, OUTPUT);
23.
24.}
25.
26.// the loop routine runs over and over again forever:
27.void loop() {
28. digitalWrite(led, HIGH);
29. delay(1000);
30. digitalWrite(led, LOW);
31. delay(1000);
32.}
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Gemma with Neopixel ring.
The problem is the line numbers. Use the 'Copy Code' button in the upper right corner of the code window.
- jmh43081
- Posts: 3
- Joined: Sun Dec 28, 2014 11:15 am
Re: Gemma with Neopixel ring.
That got me past the first error thanks. Now there appears to be a new issue.
error atc:\Program Files\Arduino\hardware/tools/avr/etc/avrdude.conf:332 unrecognized character: "w"
Thank you so much for your help.
error atc:\Program Files\Arduino\hardware/tools/avr/etc/avrdude.conf:332 unrecognized character: "w"
Thank you so much for your help.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Gemma with Neopixel ring.
Try running the "easy way" preconfigured Arduino IDE from the tutorial page.
Please be positive and constructive with your questions and comments.