Witam
Chciałbym użyć Attiny84 i moduł NRF do wysyłania sygnałów z czujnika pochylenia
Jednak nie mogę skompilować programu ponieważ pojawiają się takie błędy.
Przypuszczam że jest coś nie tak z bibliteką SPI
Kod:
C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files\Arduino\hardware" -hardware "C:\Users\Przemek\AppData\Local\Arduino15\packages" -hardware "C:\Users\Przemek\Documents\Arduino\hardware" -tools "C:\Program Files\Arduino\tools-builder" -tools "C:\Program Files\Arduino\hardware\tools\avr" -tools "C:\Users\Przemek\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files\Arduino\libraries" -libraries "C:\Users\Przemek\Documents\Arduino\libraries" -fqbn=attiny:avr:attiny:cpu=attiny84,clock=internal8 -ide-version=10607 -build-path "C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino"
C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files\Arduino\hardware" -hardware "C:\Users\Przemek\AppData\Local\Arduino15\packages" -hardware "C:\Users\Przemek\Documents\Arduino\hardware" -tools "C:\Program Files\Arduino\tools-builder" -tools "C:\Program Files\Arduino\hardware\tools\avr" -tools "C:\Users\Przemek\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files\Arduino\libraries" -libraries "C:\Users\Przemek\Documents\Arduino\libraries" -fqbn=attiny:avr:attiny:cpu=attiny84,clock=internal8 -ide-version=10607 -build-path "C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino"
"C:\Program Files\Arduino\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=attiny84 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.1\variants\tiny14" "C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp" -o "nul"
"C:\Program Files\Arduino\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=attiny84 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.1\variants\tiny14" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src" "C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp" -o "nul"
"C:\Program Files\Arduino\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=attiny84 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.1\variants\tiny14" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src" "-IC:\Users\Przemek\Documents\Arduino\libraries\RF24" "C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp" -o "nul"
"C:\Program Files\Arduino\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=attiny84 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.1\variants\tiny14" "-IC:\Users\Przemek\Documents\Arduino\libraries\RF24" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src" "C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src\SPI.cpp" -o "nul"
"C:\Program Files\Arduino\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=attiny84 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.1\variants\tiny14" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src" "-IC:\Users\Przemek\Documents\Arduino\libraries\RF24" "C:\Users\Przemek\Documents\Arduino\libraries\RF24\RF24.cpp" -o "nul"
"C:\Program Files\Arduino\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=attiny84 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.1\variants\tiny14" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src" "-IC:\Users\Przemek\Documents\Arduino\libraries\RF24" "C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp" -o "nul"
"C:\Program Files\Arduino\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=attiny84 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.1\variants\tiny14" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src" "-IC:\Users\Przemek\Documents\Arduino\libraries\RF24" "C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp" -o "C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files\Arduino\tools-builder\ctags\5.8-arduino5/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=attiny84 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_attiny -DARDUINO_ARCH_AVR "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.1\variants\tiny14" "-IC:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src" "-IC:\Users\Przemek\Documents\Arduino\libraries\RF24" "C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp" -o "C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp.o"
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h: In member function 'void SPISettings::init_AlwaysInline(uint32_t, uint8_t, uint8_t)':
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:146:16: error: 'SPE' was not declared in this scope
spcr = _BV(SPE) | _BV(MSTR) | ((bitOrder == LSBFIRST) ? _BV(DORD) : 0) |
^
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:146:27: error: 'MSTR' was not declared in this scope
spcr = _BV(SPE) | _BV(MSTR) | ((bitOrder == LSBFIRST) ? _BV(DORD) : 0) |
^
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:146:65: error: 'DORD' was not declared in this scope
spcr = _BV(SPE) | _BV(MSTR) | ((bitOrder == LSBFIRST) ? _BV(DORD) : 0) |
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h: In static member function 'static void SPIClass::beginTransaction(SPISettings)':
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:203:5: error: 'SPCR' was not declared in this scope
SPCR = settings.spcr;
^
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:204:5: error: 'SPSR' was not declared in this scope
SPSR = settings.spsr;
^
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h: In static member function 'static uint8_t SPIClass::transfer(uint8_t)':
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:209:5: error: 'SPDR' was not declared in this scope
SPDR = data;
^
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:217:14: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ; // wait
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:217:25: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ; // wait
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h: In static member function 'static uint16_t SPIClass::transfer16(uint16_t)':
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:223:11: error: 'SPCR' was not declared in this scope
if (!(SPCR & _BV(DORD))) {
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:223:22: error: 'DORD' was not declared in this scope
if (!(SPCR & _BV(DORD))) {
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:224:7: error: 'SPDR' was not declared in this scope
SPDR = in.msb;
^
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:226:16: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:226:27: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:230:16: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:230:27: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:233:7: error: 'SPDR' was not declared in this scope
SPDR = in.lsb;
^
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:235:16: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:235:27: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:239:16: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:239:27: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h: In static member function 'static void SPIClass::transfer(void*, size_t)':
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:247:5: error: 'SPDR' was not declared in this scope
SPDR = *p;
^
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:250:16: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:250:27: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:255:14: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:255:25: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) ;
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h: In static member function 'static void SPIClass::setBitOrder(uint8_t)':
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:292:31: error: 'SPCR' was not declared in this scope
if (bitOrder == LSBFIRST) SPCR |= _BV(DORD);
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:292:43: error: 'DORD' was not declared in this scope
if (bitOrder == LSBFIRST) SPCR |= _BV(DORD);
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:293:10: error: 'SPCR' was not declared in this scope
else SPCR &= ~(_BV(DORD));
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:293:24: error: 'DORD' was not declared in this scope
else SPCR &= ~(_BV(DORD));
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h: In static member function 'static void SPIClass::setDataMode(uint8_t)':
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:298:5: error: 'SPCR' was not declared in this scope
SPCR = (SPCR & ~SPI_MODE_MASK) | dataMode;
^
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h: In static member function 'static void SPIClass::setClockDivider(uint8_t)':
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:303:5: error: 'SPCR' was not declared in this scope
SPCR = (SPCR & ~SPI_CLOCK_MASK) | (clockDiv & SPI_CLOCK_MASK);
^
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:304:5: error: 'SPSR' was not declared in this scope
SPSR = (SPSR & ~SPI_2XCLOCK_MASK) | ((clockDiv >> 2) & SPI_2XCLOCK_MASK);
^
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h: In static member function 'static void SPIClass::attachInterrupt()':
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:309:42: error: 'SPCR' was not declared in this scope
inline static void attachInterrupt() { SPCR |= _BV(SPIE); }
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:309:54: error: 'SPIE' was not declared in this scope
inline static void attachInterrupt() { SPCR |= _BV(SPIE); }
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h: In static member function 'static void SPIClass::detachInterrupt()':
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:310:42: error: 'SPCR' was not declared in this scope
inline static void detachInterrupt() { SPCR &= ~_BV(SPIE); }
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino/Arduino.h:28,
from C:\Users\Przemek\AppData\Local\Temp\buildb556cc40216296485a82a3c6287b8121.tmp\sketch\sketch_may09a.ino.cpp:1:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:310:55: error: 'SPIE' was not declared in this scope
inline static void detachInterrupt() { SPCR &= ~_BV(SPIE); }
^
In file included from C:\Users\Przemek\Documents\Arduino\libraries\RF24/utility/ATTiny/RF24_arch_config.h:28:0,
from C:\Users\Przemek\Documents\Arduino\libraries\RF24/RF24_config.h:42,
from C:\Users\Przemek\Documents\Arduino\libraries\RF24/RF24.h:18,
from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:3:
C:\Users\Przemek\Documents\Arduino\libraries\RF24/utility/ATTiny/spi.h: At global scope:
C:\Users\Przemek\Documents\Arduino\libraries\RF24/utility/ATTiny/spi.h:33:7: error: redefinition of 'class SPIClass'
class SPIClass {
^
In file included from C:\Users\Przemek\AppData\Local\Temp\arduino_b556cc40216296485a82a3c6287b8121\sketch_may09a.ino:1:0:
C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI\src/SPI.h:156:7: error: previous definition of 'class SPIClass'
class SPIClass {
^
Użycie biblioteki SPI w wersji 1.0 w folderze: C:\Users\Przemek\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\libraries\SPI
Użycie biblioteki RF24 w wersji 1.1.6 w folderze: C:\Users\Przemek\Documents\Arduino\libraries\RF24
exit status 1
Błąd kompilacji.
Program który chce skompilować działa na arduino uno oraz na pro mini.
język c
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.
Czy wie ktoś o co może chodzić lub ewentualnie poda mi inne biblioteki które będą działały na arduino pro mini i attiny84