Arduino IDE code Error with GEMMA v2

Hello guys!
I'm making this "buzzing-mindfulness-bracelet" Beky Stern project with my GEMMA V2, but when I upload the code with ARDUINO IDE, I get these errors:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c: In function 'attachInterrupt':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c:198:8: warning: #warning attachInterrupt may need some more work for this cpu (case 1) [-Wcpp]
#warning attachInterrupt may need some more work for this cpu (case 1)
^~~~~~~
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c: In function 'detachInterrupt':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c:312:8: warning: #warning detachInterrupt may need some more work for this cpu (case 1) [-Wcpp]
#warning detachInterrupt may need some more work for this cpu (case 1)
^~~~~~~
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c:29:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c: In function 'INT1_vect':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c:373:15: warning: 'INT1_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
IMPLEMENT_ISR(INT1_vect, EXTERNAL_INT_1)
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c:373:1: note: in expansion of macro 'IMPLEMENT_ISR'
IMPLEMENT_ISR(INT1_vect, EXTERNAL_INT_1)
^~~~~~~~~~~~~
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Tone.cpp:37:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Tone.cpp: In function 'void TIMER2_COMPA_vect()':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Tone.cpp:538:5: warning: 'TIMER2_COMPA_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
ISR(TIMER2_COMPA_vect)
^
Sketch uses 942 bytes (17%) of program storage space. Maximum is 5310 bytes.
Global variables use 18 bytes of dynamic memory.

Anyone know how to help me?

My board works fine with other codes, so I don't think a connection problem with the computer.
In fact if I change the code, it loads it fine. It can be a code error?
Thanks a lot!!
Project link and code: https://learn.adafruit.com/buzzing-mind ... celet/code

That compiled perfectly.
If it works there is no problem.
Hope this helps.

Hi, Yes, it compiles, but it doesn't do its job, it never vibrates. Could it be because of the errors? Thanks

Check your wiring.

I checked and the circuit is exactly like the one in the diagram in the link I posted. Sure enough with this simplified code, it works (hit vibrates):

// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(1, OUTPUT);
pinMode(0, INPUT_PULLUP);
pinMode(2, INPUT_PULLUP);
}

// the loop routine runs over and over again forever:
void loop() {
digitalWrite(1, HIGH); // turn the LED on (HIGH is the voltage level)
delay(250); // wait for a second
digitalWrite(1, LOW); // turn the LED off by making the voltage LOW
delay (3600000); // wait for a second
}

But this code consumes much more battery and for this project it is a fundamental point.
The original script was designed to keep the board in sleep state to save battery... but I can't get it to work :sob:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.