{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/Adafruit_LIS3DH/issues/6","repository_url":"https://api.github.com/repos/adafruit/Adafruit_LIS3DH","labels_url":"https://api.github.com/repos/adafruit/Adafruit_LIS3DH/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/Adafruit_LIS3DH/issues/6/comments","events_url":"https://api.github.com/repos/adafruit/Adafruit_LIS3DH/issues/6/events","html_url":"https://github.com/adafruit/Adafruit_LIS3DH/issues/6","id":167517129,"number":6,"title":"Library doesn't compile with ATTiny85","user":{"login":"Glench","id":451461,"avatar_url":"https://avatars.githubusercontent.com/u/451461?v=3","gravatar_id":"","url":"https://api.github.com/users/Glench","html_url":"https://github.com/Glench","followers_url":"https://api.github.com/users/Glench/followers","following_url":"https://api.github.com/users/Glench/following{/other_user}","gists_url":"https://api.github.com/users/Glench/gists{/gist_id}","starred_url":"https://api.github.com/users/Glench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glench/subscriptions","organizations_url":"https://api.github.com/users/Glench/orgs","repos_url":"https://api.github.com/users/Glench/repos","events_url":"https://api.github.com/users/Glench/events{/privacy}","received_events_url":"https://api.github.com/users/Glench/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-26T04:09:18Z","updated_at":"2016-07-26T16:19:13Z","closed_at":"2016-07-26T15:22:12Z","body":"Trying to get the LIS3DH sensor working with an ATTiny85, the library does not compile. Here is the error I get:\r\n\r\n```\r\nArduino: 1.6.9 (Mac OS X), Board: \"ATtiny25/45/85, ATtiny85, Internal 8 MHz\"\r\n\r\n/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware \"/Applications/Arduino.app/Contents/Java/hardware\" -hardware \"/Users/glen/Library/Arduino15/packages\" -tools \"/Applications/Arduino.app/Contents/Java/tools-builder\" -tools \"/Applications/Arduino.app/Contents/Java/hardware/tools/avr\" -tools \"/Users/glen/Library/Arduino15/packages\" -built-in-libraries \"/Applications/Arduino.app/Contents/Java/libraries\" -libraries \"/Users/glen/Documents/Arduino/libraries\" -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal8 -ide-version=10609 -build-path \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp\" -warnings=none -prefs=build.warn_data_percentage=75 -verbose \"/Users/glen/tmp/sketch_jul25c/sketch_jul25c.ino\"\r\n/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware \"/Applications/Arduino.app/Contents/Java/hardware\" -hardware \"/Users/glen/Library/Arduino15/packages\" -tools \"/Applications/Arduino.app/Contents/Java/tools-builder\" -tools \"/Applications/Arduino.app/Contents/Java/hardware/tools/avr\" -tools \"/Users/glen/Library/Arduino15/packages\" -built-in-libraries \"/Applications/Arduino.app/Contents/Java/libraries\" -libraries \"/Users/glen/Documents/Arduino/libraries\" -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal8 -ide-version=10609 -build-path \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp\" -warnings=none -prefs=build.warn_data_percentage=75 -verbose \"/Users/glen/tmp/sketch_jul25c/sketch_jul25c.ino\"\r\nWARNING: Spurious .github folder in 'Adafruit LIS3DH' library\r\nBuild options changed, rebuilding all\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/sketch/sketch_jul25c.ino.cpp\" -o \"/dev/null\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/sketch/sketch_jul25c.ino.cpp\" -o \"/dev/null\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src\" \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/sketch/sketch_jul25c.ino.cpp\" -o \"/dev/null\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_Sensor\" \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/sketch/sketch_jul25c.ino.cpp\" -o \"/dev/null\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_Sensor\" \"/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH/Adafruit_LIS3DH.cpp\" -o \"/dev/null\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_Sensor\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src\" \"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/Wire.cpp\" -o \"/dev/null\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_Sensor\" \"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c\" -o \"/dev/null\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_Sensor\" \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/sketch/sketch_jul25c.ino.cpp\" -o \"/dev/null\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_Sensor\" \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/sketch/sketch_jul25c.ino.cpp\" -o \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/preproc/ctags_target_for_gcc_minus_e.cpp\"\r\n\"/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino10/ctags\" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/preproc/ctags_target_for_gcc_minus_e.cpp\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_Sensor\" \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/sketch/sketch_jul25c.ino.cpp\" -o \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/sketch/sketch_jul25c.ino.cpp.o\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_Sensor\" \"/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH/Adafruit_LIS3DH.cpp\" -o \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/libraries/Adafruit_LIS3DH/Adafruit_LIS3DH.cpp.o\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_Sensor\" \"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/Wire.cpp\" -o \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/libraries/Wire/Wire.cpp.o\"\r\n\"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc\" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10609 -DARDUINO_attiny -DARDUINO_ARCH_AVR   \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino\" \"-I/Users/glen/Library/Arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH\" \"-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src\" \"-I/Users/glen/Documents/Arduino/libraries/Adafruit_Sensor\" \"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c\" -o \"/var/folders/g5/_p40z6fj53z45x1xvgvxc3g80000gn/T/buildfb32aecad0cc70c77d8b1590509dca12.tmp/libraries/Wire/utility/twi.c.o\"\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c: In function 'twi_init':\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:76:16: error: 'SDA' undeclared (first use in this function)\r\n   digitalWrite(SDA, 1);\r\n                ^\r\n/Applications/Arduino.app/Contents/Java/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\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:77:16: error: 'SCL' undeclared (first use in this function)\r\n   digitalWrite(SCL, 1);\r\n                ^\r\nIn file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:25:\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:80:7: error: 'TWSR' undeclared (first use in this function)\r\n   cbi(TWSR, TWPS0);\r\n       ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:80:3: note: in expansion of macro 'cbi'\r\n   cbi(TWSR, TWPS0);\r\n   ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:80:13: error: 'TWPS0' undeclared (first use in this function)\r\n   cbi(TWSR, TWPS0);\r\n             ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:80:3: note: in expansion of macro 'cbi'\r\n   cbi(TWSR, TWPS0);\r\n   ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:81:13: error: 'TWPS1' undeclared (first use in this function)\r\n   cbi(TWSR, TWPS1);\r\n             ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:81:3: note: in expansion of macro 'cbi'\r\n   cbi(TWSR, TWPS1);\r\n   ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:82:3: error: 'TWBR' undeclared (first use in this function)\r\n   TWBR = ((F_CPU / TWI_FREQ) - 16) / 2;\r\n   ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:90:3: error: 'TWCR' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA);\r\n   ^\r\nIn file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:25:\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:90:14: error: 'TWEN' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA);\r\n              ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:90:26: error: 'TWIE' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA);\r\n                          ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:90:38: error: 'TWEA' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA);\r\n                                      ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c: In function 'twi_disable':\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:102:3: error: 'TWCR' undeclared (first use in this function)\r\n   TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA));\r\n   ^\r\nIn file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:25:\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:102:17: error: 'TWEN' undeclared (first use in this function)\r\n   TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA));\r\n                 ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:102:29: error: 'TWIE' undeclared (first use in this function)\r\n   TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA));\r\n                             ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:102:41: error: 'TWEA' undeclared (first use in this function)\r\n   TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA));\r\n                                         ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:105:16: error: 'SDA' undeclared (first use in this function)\r\n   digitalWrite(SDA, 0);\r\n                ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:106:16: error: 'SCL' undeclared (first use in this function)\r\n   digitalWrite(SCL, 0);\r\n                ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c: In function 'twi_setAddress':\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:118:3: error: 'TWAR' undeclared (first use in this function)\r\n   TWAR = address << 1;\r\n   ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c: In function 'twi_setFrequency':\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:129:3: error: 'TWBR' undeclared (first use in this function)\r\n   TWBR = ((F_CPU / frequency) - 16) / 2;\r\n   ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c: In function 'twi_readFrom':\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:187:7: error: 'TWDR' undeclared (first use in this function)\r\n       TWDR = twi_slarw;\r\n       ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:188:13: error: 'TWCR' undeclared (first use in this function)\r\n     } while(TWCR & _BV(TWWC));\r\n             ^\r\nIn file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:25:\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:188:24: error: 'TWWC' undeclared (first use in this function)\r\n     } while(TWCR & _BV(TWWC));\r\n                        ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:189:16: error: 'TWINT' undeclared (first use in this function)\r\n     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START\r\n                ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:189:29: error: 'TWEA' undeclared (first use in this function)\r\n     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START\r\n                             ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:189:41: error: 'TWEN' undeclared (first use in this function)\r\n     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START\r\n                                         ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:189:53: error: 'TWIE' undeclared (first use in this function)\r\n     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START\r\n                                                     ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:193:65: error: 'TWSTA' undeclared (first use in this function)\r\n     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);\r\n                                                                 ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c: In function 'twi_writeTo':\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:269:7: error: 'TWDR' undeclared (first use in this function)\r\n       TWDR = twi_slarw;    \r\n       ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:270:13: error: 'TWCR' undeclared (first use in this function)\r\n     } while(TWCR & _BV(TWWC));\r\n             ^\r\nIn file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:25:\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:270:24: error: 'TWWC' undeclared (first use in this function)\r\n     } while(TWCR & _BV(TWWC));\r\n                        ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:271:16: error: 'TWINT' undeclared (first use in this function)\r\n     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START\r\n                ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:271:29: error: 'TWEA' undeclared (first use in this function)\r\n     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START\r\n                             ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:271:41: error: 'TWEN' undeclared (first use in this function)\r\n     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START\r\n                                         ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:271:53: error: 'TWIE' undeclared (first use in this function)\r\n     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START\r\n                                                     ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:275:65: error: 'TWSTA' undeclared (first use in this function)\r\n     TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE) | _BV(TWSTA); // enable INTs\r\n                                                                 ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c: In function 'twi_reply':\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:357:5: error: 'TWCR' undeclared (first use in this function)\r\n     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA);\r\n     ^\r\nIn file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:25:\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:357:16: error: 'TWEN' undeclared (first use in this function)\r\n     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA);\r\n                ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:357:28: error: 'TWIE' undeclared (first use in this function)\r\n     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA);\r\n                            ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:357:40: error: 'TWINT' undeclared (first use in this function)\r\n     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA);\r\n                                        ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:357:53: error: 'TWEA' undeclared (first use in this function)\r\n     TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA);\r\n                                                     ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c: In function 'twi_stop':\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:372:3: error: 'TWCR' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);\r\n   ^\r\nIn file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:25:\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:372:14: error: 'TWEN' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);\r\n              ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:372:26: error: 'TWIE' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);\r\n                          ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:372:38: error: 'TWEA' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);\r\n                                      ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:372:50: error: 'TWINT' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);\r\n                                                  ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:372:63: error: 'TWSTO' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO);\r\n                                                               ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c: In function 'twi_releaseBus':\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:393:3: error: 'TWCR' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT);\r\n   ^\r\nIn file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:25:\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:393:14: error: 'TWEN' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT);\r\n              ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:393:26: error: 'TWIE' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT);\r\n                          ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:393:38: error: 'TWEA' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT);\r\n                                      ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:393:50: error: 'TWINT' undeclared (first use in this function)\r\n   TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT);\r\n                                                  ^\r\nIn file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/compat/twi.h:36:0,\r\n                 from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:27:Using library Adafruit_LIS3DH at version 1.0.3 in folder: /Users/glen/Documents/Arduino/libraries/Adafruit_LIS3DH \r\nUsing library Wire at version 1.0 in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire \r\nUsing library Adafruit_Sensor at version 1.0.2 in folder: /Users/glen/Documents/Arduino/libraries/Adafruit_Sensor \r\n\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c: In function 'TWI_vect':\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:401:10: error: 'TWSR' undeclared (first use in this function)\r\n   switch(TW_STATUS){\r\n          ^\r\nIn file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:25:\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:401:10: error: 'TWS7' undeclared (first use in this function)\r\n   switch(TW_STATUS){\r\n          ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:401:10: error: 'TWS6' undeclared (first use in this function)\r\n   switch(TW_STATUS){\r\n          ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:401:10: error: 'TWS5' undeclared (first use in this function)\r\n   switch(TW_STATUS){\r\n          ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:401:10: error: 'TWS4' undeclared (first use in this function)\r\n   switch(TW_STATUS){\r\n          ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:401:10: error: 'TWS3' undeclared (first use in this function)\r\n   switch(TW_STATUS){\r\n          ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:406:7: error: 'TWDR' undeclared (first use in this function)\r\n       TWDR = twi_slarw;\r\n       ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:426:4: error: 'TWCR' undeclared (first use in this function)\r\n    TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ;\r\n    ^\r\nIn file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:25:\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:426:15: error: 'TWINT' undeclared (first use in this function)\r\n    TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ;\r\n               ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:426:28: error: 'TWSTA' undeclared (first use in this function)\r\n    TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ;\r\n                            ^\r\n/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/utility/twi.c:426:40: error: 'TWEN' undeclared (first use in this function)\r\n    TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ;\r\n                                        ^\r\nexit status 1\r\nError compiling for board ATtiny25/45/85.\r\n```\r\n\r\n- Board: ATTiny85\r\n\r\n- Arduino IDE version (found in Arduino -> About Arduino menu): 1.6.9\r\n\r\n- List the steps to reproduce the problem below (if possible attach a sketch or\r\n  copy the sketch code in too):\r\n\r\n1. Try to compile this sketch with the following settings:\r\n\r\n```\r\n#include <Adafruit_LIS3DH.h>\r\nvoid setup() {\r\n}\r\nvoid loop() {\r\n}\r\n```\r\n![image](https://cloud.githubusercontent.com/assets/451461/17125758/4ff6e2fa-52c4-11e6-97f6-945b75e1227c.png)\r\n(This screenshot is an attempt to show the core files we're using, the board settings, and the version number of the Adafruit LIS3DH library we're using.)\r\n\r\nIt seems this error is caused by including Wire.h and/or SPI.h. Any ideas about why this library won't compile for this chip?\r\n\r\n(cc @damellis, @mmachenry)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/adafruit/Adafruit_LIS3DH/issues/comments/235321548","html_url":"https://github.com/adafruit/Adafruit_LIS3DH/issues/6#issuecomment-235321548","issue_url":"https://api.github.com/repos/adafruit/Adafruit_LIS3DH/issues/6","id":235321548,"user":{"login":"Glench","id":451461,"avatar_url":"https://avatars.githubusercontent.com/u/451461?v=3","gravatar_id":"","url":"https://api.github.com/users/Glench","html_url":"https://github.com/Glench","followers_url":"https://api.github.com/users/Glench/followers","following_url":"https://api.github.com/users/Glench/following{/other_user}","gists_url":"https://api.github.com/users/Glench/gists{/gist_id}","starred_url":"https://api.github.com/users/Glench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glench/subscriptions","organizations_url":"https://api.github.com/users/Glench/orgs","repos_url":"https://api.github.com/users/Glench/repos","events_url":"https://api.github.com/users/Glench/events{/privacy}","received_events_url":"https://api.github.com/users/Glench/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T16:19:13Z","updated_at":"2016-07-26T16:19:13Z","body":"I'm a little confused by your comment, especially given this part of the library's README, which indicates that this library *does* work with the ATTiny85:\r\n\r\n![screenshot 2016-07-26 12 09 22](https://cloud.githubusercontent.com/assets/451461/17145813/dc9f7752-5329-11e6-853d-54afdbf52a61.png)\r\n\r\nCan you help me clear up the confusion or point me to a resource that would help? I don't understand what Trinket definition you are referring to, or how I would apply that information to my situation.\r\n"}}
{"actor":{"display_login":"Glench"}}