Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
GyverLibs committed Feb 13, 2022
1 parent 6eb70b7 commit f577946
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Foo](https://img.shields.io/badge/Version-1.3.2-brightgreen.svg?style=flat-square)](#versions)
[![Foo](https://img.shields.io/badge/Version-1.4-brightgreen.svg?style=flat-square)](#versions)
[![Foo](https://img.shields.io/badge/Website-AlexGyver.ru-blue.svg?style=flat-square)](https://alexgyver.ru/)
[![Foo](https://img.shields.io/badge/%E2%82%BD$%E2%82%AC%20%D0%9D%D0%B0%20%D0%BF%D0%B8%D0%B2%D0%BE-%D1%81%20%D1%80%D1%8B%D0%B1%D0%BA%D0%BE%D0%B9-orange.svg?style=flat-square)](https://alexgyver.ru/support_alex/)

Expand Down Expand Up @@ -76,6 +76,7 @@ GyverOLED<SSH1106_128x64> oled; // только програ
// SPI
GyverOLED<SSD1306_128x64, OLED_BUFFER, OLED_SPI, CS, DS, RST> oled;
// где CS, DS, RST - цифровые пины
// дисплей подключается D0 к SCK, D1 к MOSI
```

<a id="usage"></a>
Expand Down Expand Up @@ -290,6 +291,7 @@ void loop() {
- v1.3 - прямоугольники можно рисовать из любого угла
- v1.3.1 - пофиксил линии (сломались в 1.3.0)
- v1.3.2 - убран FastIO
- v1.4 - пофикшены SPI дисплеи

<a id="feedback"></a>
## Баги и обратная связь
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=GyverOLED
version=1.3.2
version=1.4
author=AlexGyver <[email protected]>
maintainer=AlexGyver <[email protected]>
sentence=Fast and light library for SSD1306/SSH1106 OLED display
Expand Down
4 changes: 3 additions & 1 deletion src/GyverOLED.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
v1.3 - прямоугольники можно рисовать из любого угла
v1.3.1 - пофиксил линии (сломались в 1.3.0)
v1.3.2 - убран FastIO
v1.4 - пофикшены SPI дисплеи
*/

#ifndef GyverOLED_h
Expand Down Expand Up @@ -746,7 +747,8 @@ class GyverOLED : public Print {
if (_TYPE < 2) { // для 1306
setWindow(0, 0, _maxX, _maxRow);
beginData();
if (_CONN) SPI.transfer(_oled_buffer, _TYPE ? 1024 : 512);
//if (_CONN) SPI.transfer(_oled_buffer, _TYPE ? 1024 : 512);
if (_CONN) for (int i = 0; i < (_TYPE ? 1024 : 512); i++) SPI.transfer(_oled_buffer[i]);
else for (int i = 0; i < (_TYPE ? 1024 : 512); i++) sendByte(_oled_buffer[i]);
endTransm();
} else { // для 1106
Expand Down

0 comments on commit f577946

Please sign in to comment.