Open el-samiyel opened 4 years ago
No, this is AVR only
wt., 17 mar 2020, 17:35 użytkownik el-samiyel notifications@github.com napisał:
Hi, super library!
Will there be any support for the Arduino Zero samd21? I tried, but it failed to compile:
`\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp: In member function 'void Arduino_ST7789::writeSPI(uint8_t)':
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp:75:5: error: 'SPDR' was not declared in this scope
SPDR = c;
^~~~
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp:75:5: note: suggested alternative: 'SPI'
SPDR = c;
^~~~
SPI
In file included from \AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.5\cores\arduino/delay.h:23:0,
from C:\Users\el\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.5\cores\arduino/Arduino.h:81,
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.h:16,
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp:4:
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp: In member function 'void Arduino_ST7789::commonST7789Init(const uint8_t*)':
\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.5\variants\arduino_zero/variant.h:68:55: error: cannot convert 'volatile uint32_t {aka volatile long unsigned int}' to 'volatile uint8_t {aka volatile unsigned char}' in assignment
define portOutputRegister(port) ( &(port->OUT.reg) )
^
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp:169:12: note: in expansion of macro 'portOutputRegister'
dcPort = portOutputRegister(digitalPinToPort(dcPin));
^~~~~~~~~~~~~~~~~~`
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cbm80amiga/Arduino_ST7735_Fast/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEX77SCKUA7TVYOK4D7YJZLRH6RGPANCNFSM4LNTTMJQ .
Hi, super library!
Will there be any support for the Arduino Zero samd21? I tried, but it failed to compile:
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp: In member function 'void Arduino_ST7789::writeSPI(uint8_t)':
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp:75:5: error: 'SPDR' was not declared in this scope
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp:75:5: note: suggested alternative: 'SPI'
In file included from \AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.5\cores\arduino/delay.h:23:0,
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.h:16,
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp:4:
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp: In member function 'void Arduino_ST7789::commonST7789Init(const uint8_t*)':
\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.5\variants\arduino_zero/variant.h:68:55: error: cannot convert 'volatile uint32_t {aka volatile long unsigned int}' to 'volatile uint8_t {aka volatile unsigned char}' in assignment
define portOutputRegister(port) ( &(port->OUT.reg) )
\Documents\Arduino\libraries\Arduino_ST7789_Fast-master\Arduino_ST7789_Fast.cpp:169:12: note: in expansion of macro 'portOutputRegister'
dcPort = portOutputRegister(digitalPinToPort(dcPin));