{"action":"opened","issue":{"url":"https://api.github.com/repos/SpenceKonde/ATTinyCore/issues/29","labels_url":"https://api.github.com/repos/SpenceKonde/ATTinyCore/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/SpenceKonde/ATTinyCore/issues/29/comments","events_url":"https://api.github.com/repos/SpenceKonde/ATTinyCore/issues/29/events","html_url":"https://github.com/SpenceKonde/ATTinyCore/issues/29","id":111008638,"number":29,"title":"SPI for ATTiny85 not compile","user":{"login":"etmatrix","id":3065939,"avatar_url":"https://avatars.githubusercontent.com/u/3065939?v=3","gravatar_id":"","url":"https://api.github.com/users/etmatrix","html_url":"https://github.com/etmatrix","followers_url":"https://api.github.com/users/etmatrix/followers","following_url":"https://api.github.com/users/etmatrix/following{/other_user}","gists_url":"https://api.github.com/users/etmatrix/gists{/gist_id}","starred_url":"https://api.github.com/users/etmatrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etmatrix/subscriptions","organizations_url":"https://api.github.com/users/etmatrix/orgs","repos_url":"https://api.github.com/users/etmatrix/repos","events_url":"https://api.github.com/users/etmatrix/events{/privacy}","received_events_url":"https://api.github.com/users/etmatrix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-12T16:20:33Z","updated_at":"2015-10-12T16:20:33Z","closed_at":null,"body":"I tried lastest version from github with ATTiny85 and example SPI BarometricPressureSensor.\r\nI have this error:\r\n\r\n    In file included from /tmp/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/io.h:99:0,\r\n                 from /tmp/arduino-1.6.5-r5/hardware/tools/avr/avr/include/avr/pgmspace.h:88,\r\n                 from /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/cores/tiny/Arduino.h:8,\r\n                 from /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/libraries/SPI/SPI.h:17,\r\n                 from BarometricPressureSensor.ino:26:\r\n    /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/libraries/SPI/SPI.h: In member function 'void SPISettings::init_AlwaysInline(uint32_t, uint8_t, uint8_t)':\r\n    /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/libraries/SPI/SPI.h:146:16: error: 'SPE' was not declared in this scope\r\n     spcr = _BV(SPE) | _BV(MSTR) | ((bitOrder == LSBFIRST) ? _BV(DORD) : 0) |\r\n                ^\r\n    /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/libraries/SPI/SPI.h:146:27: error: 'MSTR' was not declared in this scope\r\n     spcr = _BV(SPE) | _BV(MSTR) | ((bitOrder == LSBFIRST) ? _BV(DORD) : 0) |\r\n                           ^\r\n    /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/libraries/SPI/SPI.h:146:65: error: 'DORD' was not declared in this scope\r\n     spcr = _BV(SPE) | _BV(MSTR) | ((bitOrder == LSBFIRST) ? _BV(DORD) : 0) |\r\n                                                                 ^\r\n    In file included from BarometricPressureSensor.ino:26:0:\r\n    /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/libraries/SPI/SPI.h: In static member function 'static void SPIClass::beginTransaction(SPISettings)':\r\n    /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/libraries/SPI/SPI.h:203:5: error: 'SPCR' was not declared in this scope\r\n     SPCR = settings.spcr;\r\n     ^\r\n    /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/libraries/SPI/SPI.h:204:5: error: 'SPSR' was not declared in this scope\r\n     SPSR = settings.spsr;\r\n     ^\r\n    /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/libraries/SPI/SPI.h: In static member function 'static uint8_t SPIClass::transfer(uint8_t)':\r\n    /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/libraries/SPI/SPI.h:209:5: error: 'SPDR' was not declared in this scope\r\n     SPDR = data;\r\n     ^\r\n    /tmp/arduino-1.6.5-r5/hardware/ATTinyCore/avr/libraries/SPI/SPI.h:217:14: error: 'SPSR' was not declared in this scope\r\n     while (!(SPSR & _BV(SPIF))) ; // wait\r\n\r\nI think library SPI is not ported to ATTiny. On github i have found another project for porting SPI into ATTiny.\r\n"}}