Skip to content

Commit f7d50da

Browse files
committed
v0.9.058
1 parent 70306bf commit f7d50da

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ https://aliexpress.com/item/32965676064.html
6666
- or **ILI9488** 3.5' 480x320 SPI https://aliexpress.com/item/1005001999296476.html?sku_id=12000018365356570
6767
- or **ILI9486** (Testing mode) 3.5' 480x320 SPI https://aliexpress.com/item/1005001999296476.html?sku_id=12000018365356568
6868
- or **SSD1322** 2.8' 256x64 SPI https://aliexpress.com/item/1005003480981568.html
69+
- or **ST7920** 2.6' 128x64 SPI https://aliexpress.com/item/32699482638.html
6970

7071
(see [Wiki](https://github.com/e2002/yoradio/wiki/Available-display-models) for more details)
7172

@@ -225,6 +226,9 @@ Work is in progress...
225226

226227
---
227228
## Version history
229+
#### v0.9.058
230+
- added support for ST7920 128x64 2.6' OLED display https://aliexpress.com/item/32699482638.html
231+
228232
#### v0.9.045
229233
- added support for SSD1322 256x64 2.8' OLED display https://aliexpress.com/item/1005003480981568.html
230234

yoRadio/src/ST7920/ST7920.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
#include <SPI.h>
22
#include <Adafruit_GFX.h>
33

4-
#define ST7920_HEIGHT 64 //64 pixels tall display
5-
#define ST7920_WIDTH 128 //128 pixels wide display
4+
#define ST7920_HEIGHT 64 //64 pixels tall display
5+
#define ST7920_WIDTH 128 //128 pixels wide display
66

77

88
#define ST7920_DISPLAYOFF 0x08
99
#define ST7920_DISPLAYON 0x0C
1010
//#define ST7920_NORMALDISPLAY 0xA6
1111
//#define ST7920_INVERSEDISPLAY 0xA7
1212

13-
#define BLACK 0 //Defines color - Black color -> Bit in buffer is set to one
14-
#define WHITE 1 //Defines color - White color -> Bit in buffer is set to zero
13+
#define BLACK 0 //Defines color - Black color -> Bit in buffer is set to one
14+
#define WHITE 1 //Defines color - White color -> Bit in buffer is set to zero
1515

1616
class ST7920 : public Adafruit_GFX {
1717
public:
18-
//ST7920(int8_t CS);
18+
//ST7920(int8_t CS);
1919
ST7920(SPIClass *spi, int8_t cs_pin, uint32_t bitrate=8000000UL);
2020
~ST7920(void);
21-
void begin(void);
22-
void clearDisplay(void);
23-
void invertDisplay(bool flag);
24-
void doSleep(bool flag);
25-
void display();
26-
void drawPixel(int16_t x, int16_t y, uint16_t color);
21+
void begin(void);
22+
void clearDisplay(void);
23+
void invertDisplay(bool flag);
24+
void doSleep(bool flag);
25+
void display();
26+
void drawPixel(int16_t x, int16_t y, uint16_t color);
2727
void ST7920Data(uint8_t data);
28-
void ST7920Command(uint8_t data);
28+
void ST7920Command(uint8_t data);
2929
private:
3030
SPIClass *spi;
3131
uint8_t *buffer;

yoRadio/src/core/options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef options_h
22
#define options_h
33

4-
#define YOVERSION "0.9.057"
4+
#define YOVERSION "0.9.058"
55

66
/*******************************************************
77
DO NOT EDIT THIS FILE.

yoRadio/src/displays/displayST7920.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define LOGO_HEIGHT 32
1111

1212
#ifndef DEF_SPI_FREQ
13-
#define DEF_SPI_FREQ 8000000UL /* set it to 0 for system default */
13+
#define DEF_SPI_FREQ 8000000UL
1414
#endif
1515

1616
const unsigned char logo [] PROGMEM=

0 commit comments

Comments
 (0)