Skip to content

Instantly share code, notes, and snippets.

@LuisDiazUgena
Created May 23, 2015 09:15
Show Gist options
  • Save LuisDiazUgena/8641a18cb7960208874f to your computer and use it in GitHub Desktop.
Save LuisDiazUgena/8641a18cb7960208874f to your computer and use it in GitHub Desktop.
Arduino:1.6.0 (Mac OS X), TD: 1.21-beta10, Placa:"ATtiny, ATtiny45, 8 MHz (internal)"
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp: In member function 'void MD_MAX72XX::begin()':
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:61:15: error: 'SS' was not declared in this scope
digitalWrite(SS, HIGH);
^
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:63:10: error: 'MOSI' was not declared in this scope
pinMode(MOSI, OUTPUT);
^
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:64:10: error: 'SCK' was not declared in this scope
pinMode(SCK, OUTPUT);
^
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:69:2: error: 'SPCR' was not declared in this scope
SPCR |= _BV(MSTR);
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:88,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:24:
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:69:14: error: 'MSTR' was not declared in this scope
SPCR |= _BV(MSTR);
^
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:70:14: error: 'SPE' was not declared in this scope
SPCR |= _BV(SPE);
^
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:73:19: error: 'DORD' was not declared in this scope
SPCR &= ~(_BV(DORD));
^
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp: In destructor 'MD_MAX72XX::~MD_MAX72XX()':
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:128:20: error: 'SPCR' was not declared in this scope
if (_hardwareSPI) SPCR &= ~_BV(SPE); // reset SPI mode
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:88,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:24:
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:128:33: error: 'SPE' was not declared in this scope
if (_hardwareSPI) SPCR &= ~_BV(SPE); // reset SPI mode
^
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp: In member function 'void MD_MAX72XX::spiSend()':
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:308:4: error: 'SPDR' was not declared in this scope
SPDR = _spiData[i];
^
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:309:13: error: 'SPSR' was not declared in this scope
while (!(SPSR & _BV(SPIF))) // wait for a clear bit
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:88,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:24:
/Users/luisdiazugena/Desktop/github-projects/Oh-Controller/libraries/MD_MAX72xx/src/MD_MAX72xx.cpp:309:24: error: 'SPIF' was not declared in this scope
while (!(SPSR & _BV(SPIF))) // wait for a clear bit
^
Error de compilación
This report would have more information with
"Show verbose output during compilation"
activala desde Archivo > Preferencias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment