cbm80amiga / arduino_st7735_stm Goto Github PK
View Code? Open in Web Editor NEWFast STM32 SPI-DMA library for ST7735 128x160 display
License: GNU Lesser General Public License v3.0
Fast STM32 SPI-DMA library for ST7735 128x160 display
License: GNU Lesser General Public License v3.0
Wrong place, sorry, please remove, thanks.
Please advise on how to use your library?
When installing into the IDE currently and using Rogers STM32 package as mentioned in previous issue example sketches fail to compile
When installing with arduino STM board support the library fails to compile in line missing lots of SPI definitions
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'void Arduino_ST7735::init()':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:115:67: error: 'DATA_SIZE_8BIT' was not declared in this scope
SPI.beginTransaction(SPISettings(SPI_FREQ, MSBFIRST, SPI_MODE3, DATA_SIZE_8BIT));
^~~~~~~~~~~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:115:67: note: suggested alternative: 'SPI_DATASIZE_8BIT'
SPI.beginTransaction(SPISettings(SPI_FREQ, MSBFIRST, SPI_MODE3, DATA_SIZE_8BIT));
^~~~~~~~~~~~~~
SPI_DATASIZE_8BIT
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:136:7: error: 'class SPIClass' has no member named 'setDataSize'; did you mean 'setDataMode'?
SPI.setDataSize(DATA_SIZE_16BIT);
^~~~~~~~~~~
setDataMode
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:136:19: error: 'DATA_SIZE_16BIT' was not declared in this scope
SPI.setDataSize(DATA_SIZE_16BIT);
^~~~~~~~~~~~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:136:19: note: suggested alternative: 'SPI_DATASIZE_16BIT'
SPI.setDataSize(DATA_SIZE_16BIT);
^~~~~~~~~~~~~~~
SPI_DATASIZE_16BIT
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'void Arduino_ST7735::writeCmd(uint16_t)':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:144:7: error: 'class SPIClass' has no member named 'write'
SPI.write(c);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'void Arduino_ST7735::writeData(uint16_t)':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:153:7: error: 'class SPIClass' has no member named 'write'
SPI.write(c);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'virtual void Arduino_ST7735::setRotation(uint8_t)':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:183:7: error: 'class SPIClass' has no member named 'setDataSize'; did you mean 'setDataMode'?
SPI.setDataSize(DATA_SIZE_8BIT);
^~~~~~~~~~~
setDataMode
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:183:19: error: 'DATA_SIZE_8BIT' was not declared in this scope
SPI.setDataSize(DATA_SIZE_8BIT);
^~~~~~~~~~~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:183:19: note: suggested alternative: 'SPI_DATASIZE_8BIT'
SPI.setDataSize(DATA_SIZE_8BIT);
^~~~~~~~~~~~~~
SPI_DATASIZE_8BIT
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:216:7: error: 'class SPIClass' has no member named 'setDataSize'; did you mean 'setDataMode'?
SPI.setDataSize(DATA_SIZE_16BIT);
^~~~~~~~~~~
setDataMode
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:216:19: error: 'DATA_SIZE_16BIT' was not declared in this scope
SPI.setDataSize(DATA_SIZE_16BIT);
^~~~~~~~~~~~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:216:19: note: suggested alternative: 'SPI_DATASIZE_16BIT'
SPI.setDataSize(DATA_SIZE_16BIT);
^~~~~~~~~~~~~~~
SPI_DATASIZE_16BIT
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'void Arduino_ST7735::setAddrWindow(uint16_t, uint16_t, uint16_t, uint16_t)':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:227:19: error: 'class SPIClass' has no member named 'write'
DC_COMMAND; SPI.write(ST7735_CASET);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:228:16: error: 'class SPIClass' has no member named 'write'
DC_DATA; SPI.write(x0); SPI.write(x1);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:228:31: error: 'class SPIClass' has no member named 'write'
DC_DATA; SPI.write(x0); SPI.write(x1);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:230:19: error: 'class SPIClass' has no member named 'write'
DC_COMMAND; SPI.write(ST7735_RASET);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:231:16: error: 'class SPIClass' has no member named 'write'
DC_DATA; SPI.write(y0); SPI.write(y1);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:231:31: error: 'class SPIClass' has no member named 'write'
DC_DATA; SPI.write(y0); SPI.write(y1);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:233:19: error: 'class SPIClass' has no member named 'write'
DC_COMMAND; SPI.write(ST7735_RAMWR);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'void Arduino_ST7735::pushColor(uint16_t)':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:244:7: error: 'class SPIClass' has no member named 'write'
SPI.write(color);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'virtual void Arduino_ST7735::drawPixel(int16_t, int16_t, uint16_t)':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:253:19: error: 'class SPIClass' has no member named 'write'
DC_COMMAND; SPI.write(ST7735_CASET);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:254:16: error: 'class SPIClass' has no member named 'write'
DC_DATA; SPI.write(x); SPI.write(x+1);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:254:30: error: 'class SPIClass' has no member named 'write'
DC_DATA; SPI.write(x); SPI.write(x+1);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:255:19: error: 'class SPIClass' has no member named 'write'
DC_COMMAND; SPI.write(ST7735_RASET);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:256:16: error: 'class SPIClass' has no member named 'write'
DC_DATA; SPI.write(y); SPI.write(y+1);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:256:30: error: 'class SPIClass' has no member named 'write'
DC_DATA; SPI.write(y); SPI.write(y+1);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:257:19: error: 'class SPIClass' has no member named 'write'
DC_COMMAND; SPI.write(ST7735_RAMWR);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:258:16: error: 'class SPIClass' has no member named 'write'
DC_DATA; SPI.write(color);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'virtual void Arduino_ST7735::drawFastVLine(int16_t, int16_t, int16_t, uint16_t)':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:275:9: error: 'class SPIClass' has no member named 'dmaSend'
SPI.dmaSend(dmaBuf, h, 0);
^~~~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:278:7: error: 'class SPIClass' has no member named 'write'
SPI.write(color, h);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'virtual void Arduino_ST7735::drawFastHLine(int16_t, int16_t, int16_t, uint16_t)':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:296:9: error: 'class SPIClass' has no member named 'dmaSend'
SPI.dmaSend(dmaBuf, w, 0);
^~~~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:299:7: error: 'class SPIClass' has no member named 'write'
SPI.write(color, w);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'virtual void Arduino_ST7735::fillRect(int16_t, int16_t, int16_t, int16_t, uint16_t)':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:327:11: error: 'class SPIClass' has no member named 'dmaSend'
SPI.dmaSend(dmaBuf, DMA_MAX, 0);
^~~~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:329:9: error: 'class SPIClass' has no member named 'dmaSend'
SPI.dmaSend(dmaBuf, num, 0);
^~~~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:332:7: error: 'class SPIClass' has no member named 'write'
SPI.write(color, num);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'void Arduino_ST7735::drawImage(int16_t, int16_t, int16_t, int16_t, uint16_t*)':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:346:7: error: 'class SPIClass' has no member named 'write'
SPI.write(img16, num);
^~~~~
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp: In member function 'void Arduino_ST7735::drawImageF(int16_t, int16_t, int16_t, int16_t, const uint16_t*)':
D:\Software BackUp\arduino-1.8.5-windows\arduino-1.8.5\portable\sketchbook\libraries\Arduino_ST7735_STM-master\Arduino_ST7735_STM.cpp:359:7: error: 'class SPIClass' has no member named 'write'
SPI.write(img16, num);
in the Library Manager FAQ from Aruino, it's writing :
https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ
A library is not valid when:
- it's not in 1.5 format and in particular it misses a library.properties file (1.5 format folder layout is not required)
- its name field in library.properties starts with Arduino
why did you that?
It does support the screen but not completely. The last vertical line is randomly dotted. Doesn't get filled completely.
Line at x 0 is never drawn
Hi, really impressive library. But could you update in to the latest IDE version? New IDE perhaps use another SPI library, so I get bunch of SPI.write and SPI.dmaSend errors.
Thanks in advance.
Hi, how can I change offset's to work 100% with 128x128 display?
Sorry for my english!!
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.