0

Gemma I2C?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Gemma I2C?

by miyceramics on Sat Oct 29, 2016 1:00 am

I would like to use the gemma to read the LM303 and do stuff. I can't seem to find anything to point me in the right direction. How do I setup Gemma to use D2 and D1 as I2C clock and data? Do I need to use the Tinywire library or just the regular wire library? In either case I get errors compiling:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'twi_init':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:76:16: error: 'SDA' undeclared (first use in this function)

digitalWrite(SDA, 1);

If you can point me to some good examples or in the right direction I would really appreciate it.


Thanks
Denise

miyceramics
 
Posts: 22
Joined: Fri Jun 10, 2016 4:51 pm

Re: Gemma I2C?

by adafruit_support_bill on Sat Oct 29, 2016 6:06 am

You need to install the LSM303 library from here: https://github.com/adafruit/Adafruit_LSM303DLHC
There are example sketches with the library that show how to use it.
The wire library in the Adafruit board manager package has support for the Gemma.

adafruit_support_bill
 
Posts: 72764
Joined: Sat Feb 07, 2009 10:11 am

Re: Gemma I2C?

by miyceramics on Wed Nov 02, 2016 11:19 pm

Thank you for you quick answer. It seems that I you instructions were also missing that I needed the sensor hub library that was in the magsensor example sketch:
https://github.com/adafruit/Adafruit_Sensor

But after installing both libraries I am still getting the same compile error . I did not see in the


Code: Select all | TOGGLE FULL SIZE
:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'twi_init':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:76:16: error: 'SDA' undeclared (first use in this function)

   digitalWrite(SDA, 1);

                ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:76:16: note: each undeclared identifier is reported only once for each function it appears in

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:77:16: error: 'SCL' undeclared (first use in this function)

   digitalWrite(SCL, 1);

                ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:25:

miyceramics
 
Posts: 22
Joined: Fri Jun 10, 2016 4:51 pm

Re: Gemma I2C?

by adafruit_support_bill on Thu Nov 03, 2016 7:31 am

Are you using an Arduino Gemma or an Adafruit Gemma?

adafruit_support_bill
 
Posts: 72764
Joined: Sat Feb 07, 2009 10:11 am

Re: Gemma I2C?

by miyceramics on Thu Nov 03, 2016 7:59 pm

AdaFruit Gemma

miyceramics
 
Posts: 22
Joined: Fri Jun 10, 2016 4:51 pm

Re: Gemma I2C?

by adafruit_support_bill on Thu Nov 03, 2016 8:14 pm

Make sure that you select "Adafruit Gemma" as your board type. If you select "Arduino Gemma" you will get the errors that you are seeing,.

adafruit_support_bill
 
Posts: 72764
Joined: Sat Feb 07, 2009 10:11 am

Re: Gemma I2C?

by miyceramics on Fri Nov 04, 2016 10:54 pm

Please see attached you can see the adafruit gemma in the right hand corner of the screen snippet of the ide. So I think I do have all the correct settings. Any other suggestions I can try?

Thanks
Denise
Attachments
Capture.PNG
Capture.PNG (104.29 KiB) Viewed 860 times

miyceramics
 
Posts: 22
Joined: Fri Jun 10, 2016 4:51 pm

Re: Gemma I2C?

by adafruit_support_bill on Sat Nov 05, 2016 6:51 am

What version of the IDE are you using? I just checked with IDE 1.6.8 and the LSM303 "accelsensor" example compiles without errors when I select the Arduino Gemma as boar type.

adafruit_support_bill
 
Posts: 72764
Joined: Sat Feb 07, 2009 10:11 am

Re: Gemma I2C?

by miyceramics on Sat Nov 05, 2016 1:52 pm

HI,

I have version 1.6.12. I am using an ada fruit gemma I am using the LM303HDLC library and the accelsensor example. And it will not compile. The first error is that serial is not declared in this scope. So I removed all the references to the serial comm (since it is not supported by gemma anyways) and then I get the compile error I posted below you can see the copied error from the IDE:
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.6.12 (Windows 10), Board: "Adafruit Gemma 8MHz"

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'twi_init':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:76:16: error: 'SDA' undeclared (first use in this function)

   digitalWrite(SDA, 1);

                ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:76:16: note: each undeclared identifier is reported only once for each function it appears in

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:77:16: error: 'SCL' undeclared (first use in this function)

   digitalWrite(SCL, 1);

                ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:80:7: error: 'TWSR' undeclared (first use in this function)

   cbi(TWSR, TWPS0);

       ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:80:3: note: in expansion of macro 'cbi'

   cbi(TWSR, TWPS0);

   ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:80:13: error: 'TWPS0' undeclared (first use in this function)

   cbi(TWSR, TWPS0);

             ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:80:3: note: in expansion of macro 'cbi'

   cbi(TWSR, TWPS0);

   ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:81:13: error: 'TWPS1' undeclared (first use in this function)

   cbi(TWSR, TWPS1);

             ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:81:3: note: in expansion of macro 'cbi'

   cbi(TWSR, TWPS1);

   ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:82:3: error: 'TWBR' undeclared (first use in this function)

   TWBR = ((F_CPU / TWI_FREQ) - 16) / 2;

   ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:90:3: error: 'TWCR' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA);

   ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:90:14: error: 'TWEN' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA);

              ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:90:26: error: 'TWIE' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA);

                          ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:90:38: error: 'TWEA' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA);

                                      ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'twi_disable':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:102:3: error: 'TWCR' undeclared (first use in this function)

   TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA));

   ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:102:17: error: 'TWEN' undeclared (first use in this function)

   TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA));

                 ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:102:29: error: 'TWIE' undeclared (first use in this function)

   TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA));

                             ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:102:41: error: 'TWEA' undeclared (first use in this function)

   TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA));

                                         ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:105:16: error: 'SDA' undeclared (first use in this function)

   digitalWrite(SDA, 0);

                ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:106:16: error: 'SCL' undeclared (first use in this function)

   digitalWrite(SCL, 0);

                ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'twi_setAddress':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:118:3: error: 'TWAR' undeclared (first use in this function)

   TWAR = address << 1;

   ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'twi_setFrequency':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:129:3: error: 'TWBR' undeclared (first use in this function)

   TWBR = ((F_CPU / frequency) - 16) / 2;

   ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'twi_readFrom':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:187:7: error: 'TWDR' undeclared (first use in this function)

       TWDR = twi_slarw;

       ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:188:13: error: 'TWCR' undeclared (first use in this function)

     } while(TWCR & _BV(TWWC));

             ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:188:24: error: 'TWWC' undeclared (first use in this function)

     } while(TWCR & _BV(TWWC));

                        ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:189:16: error: 'TWINT' undeclared (first use in this function)

     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START

                ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:189:29: error: 'TWEA' undeclared (first use in this function)

     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START

                             ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:189:41: error: 'TWEN' undeclared (first use in this function)

     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START

                                         ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:189:53: error: 'TWIE' undeclared (first use in this function)

     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START

                                                     ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:193:65: error: 'TWSTA' undeclared (first use in this function)

     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);

                                                                 ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'twi_writeTo':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:269:7: error: 'TWDR' undeclared (first use in this function)

       TWDR = twi_slarw;   

       ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:270:13: error: 'TWCR' undeclared (first use in this function)

     } while(TWCR & _BV(TWWC));

             ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:270:24: error: 'TWWC' undeclared (first use in this function)

     } while(TWCR & _BV(TWWC));

                        ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:271:16: error: 'TWINT' undeclared (first use in this function)

     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START

                ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:271:29: error: 'TWEA' undeclared (first use in this function)

     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START

                             ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:271:41: error: 'TWEN' undeclared (first use in this function)

     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START

                                         ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:271:53: error: 'TWIE' undeclared (first use in this function)

     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START

                                                     ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:275:65: error: 'TWSTA' undeclared (first use in this function)

     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE) | _BV(TWSTA); // enable INTs

                                                                 ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'twi_reply':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:357:5: error: 'TWCR' undeclared (first use in this function)

     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA);

     ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:357:16: error: 'TWEN' undeclared (first use in this function)

     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA);

                ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:357:28: error: 'TWIE' undeclared (first use in this function)

     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA);

                            ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:357:40: error: 'TWINT' undeclared (first use in this function)

     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA);

                                        ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:357:53: error: 'TWEA' undeclared (first use in this function)

     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA);

                                                     ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'twi_stop':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:372:3: error: 'TWCR' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);

   ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:372:14: error: 'TWEN' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);

              ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:372:26: error: 'TWIE' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);

                          ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:372:38: error: 'TWEA' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);

                                      ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:372:50: error: 'TWINT' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);

                                                  ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:372:63: error: 'TWSTO' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);

                                                               ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'twi_releaseBus':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:393:3: error: 'TWCR' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT);

   ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:393:14: error: 'TWEN' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT);

              ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:393:26: error: 'TWIE' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT);

                          ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:393:38: error: 'TWEA' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT);

                                      ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:393:50: error: 'TWINT' undeclared (first use in this function)

   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT);

                                                  ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\compat\twi.h:36:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:27:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c: In function 'TWI_vect':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:401:10: error: 'TWSR' undeclared (first use in this function)

   switch(TW_STATUS){

          ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:401:10: error: 'TWS7' undeclared (first use in this function)

   switch(TW_STATUS){

          ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:401:10: error: 'TWS6' undeclared (first use in this function)

   switch(TW_STATUS){

          ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:401:10: error: 'TWS5' undeclared (first use in this function)

   switch(TW_STATUS){

          ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:401:10: error: 'TWS4' undeclared (first use in this function)

   switch(TW_STATUS){

          ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:401:10: error: 'TWS3' undeclared (first use in this function)

   switch(TW_STATUS){

          ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:406:7: error: 'TWDR' undeclared (first use in this function)

       TWDR = twi_slarw;

       ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:426:4: error: 'TWCR' undeclared (first use in this function)

    TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ;

    ^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:426:15: error: 'TWINT' undeclared (first use in this function)

    TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ;

               ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:426:28: error: 'TWSTA' undeclared (first use in this function)

    TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ;

                            ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c:426:40: error: 'TWEN' undeclared (first use in this function)

    TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ;

                                        ^

exit status 1
Error compiling for board Adafruit Gemma 8MHz.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.



Regards
Denise

miyceramics
 
Posts: 22
Joined: Fri Jun 10, 2016 4:51 pm

Re: Gemma I2C?

by adafruit_support_bill on Sat Nov 05, 2016 2:13 pm

Arduino: 1.6.12 (Windows 10), Board: "Adafruit Gemma 8MHz"

I just tried it on an identical configuration and it compiled without errors here:

Code: Select all | TOGGLE FULL SIZE
D:\Projects\Arduino\arduino-1.6.12\arduino-builder -dump-prefs -logger=machine -hardware D:\Projects\Arduino\arduino-1.6.12\hardware -hardware C:\Users\Bill\AppData\Local\Arduino15\packages -tools D:\Projects\Arduino\arduino-1.6.12\tools-builder -tools D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr -tools C:\Users\Bill\AppData\Local\Arduino15\packages -built-in-libraries D:\Projects\Arduino\arduino-1.6.12\libraries -libraries D:\Users\Bill Earl\Documents\Arduino\libraries -fqbn=adafruit:avr:gemma -ide-version=10612 -build-path C:\Users\Bill\AppData\Local\Temp\arduino_build_873936 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr -prefs=runtime.tools.avrdude.path=D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr -verbose C:\Users\Bill\AppData\Local\Temp\arduino_modified_sketch_992508\accelsensor.pde
D:\Projects\Arduino\arduino-1.6.12\arduino-builder -compile -logger=machine -hardware D:\Projects\Arduino\arduino-1.6.12\hardware -hardware C:\Users\Bill\AppData\Local\Arduino15\packages -tools D:\Projects\Arduino\arduino-1.6.12\tools-builder -tools D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr -tools C:\Users\Bill\AppData\Local\Arduino15\packages -built-in-libraries D:\Projects\Arduino\arduino-1.6.12\libraries -libraries D:\Users\Bill Earl\Documents\Arduino\libraries -fqbn=adafruit:avr:gemma -ide-version=10612 -build-path C:\Users\Bill\AppData\Local\Temp\arduino_build_873936 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr -prefs=runtime.tools.avrdude.path=D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr -verbose C:\Users\Bill\AppData\Local\Temp\arduino_modified_sketch_992508\accelsensor.pde
Using board 'gemma' from platform in folder: C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7
Using core 'arduino' from platform in folder: D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr
Detecting libraries used...
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\sketch\accelsensor.pde.cpp" -o "nul"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\sketch\accelsensor.pde.cpp" -o "nul"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\sketch\accelsensor.pde.cpp" -o "nul"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\sketch\accelsensor.pde.cpp" -o "nul"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\utility" "C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\TinyWireM.cpp" -o "nul"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\utility" "C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\USI_TWI_Master.cpp" -o "nul"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\utility" "C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\Wire.cpp" -o "nul"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\utility" "C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\utility\twi.c" -o "nul"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "D:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master\Adafruit_LSM303_U.cpp" -o "nul"
Generating function prototypes...
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\sketch\accelsensor.pde.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\preproc\ctags_target_for_gcc_minus_e.cpp"
"D:\Projects\Arduino\arduino-1.6.12\tools-builder\ctags\5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\sketch\accelsensor.pde.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\sketch\accelsensor.pde.cpp.o"
Compiling libraries...
Compiling library "Wire"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\utility" "C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\TinyWireM.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\libraries\Wire\TinyWireM.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\utility" "C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\USI_TWI_Master.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\libraries\Wire\USI_TWI_Master.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\utility" "C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\Wire.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\libraries\Wire\Wire.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\utility" "C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire\utility\twi.c" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\libraries\Wire\utility\twi.c.o"
Compiling library "Adafruit_Sensor-master"
Compiling library "Adafruit_LSM303DLHC-master"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master" "-ID:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master" "D:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master\Adafruit_LSM303_U.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\libraries\Adafruit_LSM303DLHC-master\Adafruit_LSM303_U.cpp.o"
Compiling core...
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\wiring_pulse.S" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring_pulse.S.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\WInterrupts.c" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\WInterrupts.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\hooks.c" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\hooks.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\wiring.c" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\wiring_analog.c" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring_analog.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\wiring_digital.c" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring_digital.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\wiring_pulse.c" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring_pulse.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\wiring_shift.c" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring_shift.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\CDC.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\CDC.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\HardwareSerial.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\HardwareSerial.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\HardwareSerial0.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\HardwareSerial0.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\HardwareSerial1.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\HardwareSerial1.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\HardwareSerial2.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\HardwareSerial2.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\HardwareSerial3.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\HardwareSerial3.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\IPAddress.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\IPAddress.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\PluggableUSB.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\PluggableUSB.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\Print.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\Print.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\Stream.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\Stream.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\Tone.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\Tone.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\USBCore.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\USBCore.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\WMath.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\WMath.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\WString.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\WString.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\abi.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\abi.cpp.o"
Invalid library found in D:\Users\Bill Earl\Documents\Arduino\libraries\ZumoExamples: D:\Users\Bill Earl\Documents\Arduino\libraries\ZumoExamples
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\main.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\main.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10612 -DARDUINO_AVR_GEMMA -DARDUINO_ARCH_AVR   "-ID:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino" "-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\variants\tiny8" "D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\cores\arduino\new.cpp" -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\new.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring_pulse.S.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\WInterrupts.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\hooks.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring_analog.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring_digital.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring_pulse.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\wiring_shift.c.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\CDC.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\HardwareSerial.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\HardwareSerial0.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\HardwareSerial1.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\HardwareSerial2.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\HardwareSerial3.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\IPAddress.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\PluggableUSB.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\Print.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\Stream.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\Tone.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\USBCore.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\WMath.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\WString.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\abi.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\main.cpp.o"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc-ar" rcs  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\core.a" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\core\new.cpp.o"
Linking everything together...
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-gcc" -w -Os -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=attiny85  -o "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936/accelsensor.pde.elf" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\sketch\accelsensor.pde.cpp.o" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\libraries\Wire\TinyWireM.cpp.o" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\libraries\Wire\USI_TWI_Master.cpp.o" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\libraries\Wire\Wire.cpp.o" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\libraries\Wire\utility\twi.c.o" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936\libraries\Adafruit_LSM303DLHC-master\Adafruit_LSM303_U.cpp.o" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936/core\core.a" "-LC:\Users\Bill\AppData\Local\Temp\arduino_build_873936" -lm
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936/accelsensor.pde.elf" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936/accelsensor.pde.eep"
"D:\Projects\Arduino\arduino-1.6.12\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom  "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936/accelsensor.pde.elf" "C:\Users\Bill\AppData\Local\Temp\arduino_build_873936/accelsensor.pde.hex"
Multiple libraries were found for "Wire.h"
 Used: C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire
 Not used: D:\Projects\Arduino\arduino-1.6.12\hardware\arduino\avr\libraries\Wire
Using library Wire at version 1.0 in folder: C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.7\libraries\Wire
Using library Adafruit_Sensor-master at version 1.0.2 in folder: D:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_Sensor-master
Using library Adafruit_LSM303DLHC-master at version 1.0.0 in folder: D:\Users\Bill Earl\Documents\Arduino\libraries\Adafruit_LSM303DLHC-master

Sketch uses 2,954 bytes (55%) of program storage space. Maximum is 5,310 bytes.
Global variables use 82 bytes of dynamic memory.


It looks like your compiler is not finding the Adafruit version of the Wire library that contains i2c code specific to the Gemma.
Try re-installing the Adafruit Board Manager package: https://learn.adafruit.com/add-boards-a ... 4/overview

adafruit_support_bill
 
Posts: 72764
Joined: Sat Feb 07, 2009 10:11 am

Re: Gemma I2C?

by miyceramics on Sun Nov 06, 2016 8:54 pm

Wow. Thank you! I was on 1.3 for the board manager. I updated to 1.4.9 and now its building!

Regards
Denise

miyceramics
 
Posts: 22
Joined: Fri Jun 10, 2016 4:51 pm

Re: Gemma I2C?

by adafruit_support_bill on Mon Nov 07, 2016 6:49 am

Good to hear. Thanks for the follow-up.

adafruit_support_bill
 
Posts: 72764
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.