Skip to content

Commit

Permalink
Merge pull request #132 from lovyan03/develop
Browse files Browse the repository at this point in the history
0.4.0
  • Loading branch information
lovyan03 authored Jul 1, 2021
2 parents 441ae96 + db07d05 commit 4fc250c
Show file tree
Hide file tree
Showing 187 changed files with 69,396 additions and 30,626 deletions.
17 changes: 16 additions & 1 deletion .github/scripts/semver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,22 @@ function patchpropertyfiles {
fi

if [ -f "$GITHUB_WORKSPACE/src/gitTagVersion.h" ]; then
sed -i -e "s/\"$old_tag\"/\"$new_tag\"/g" $GITHUB_WORKSPACE/src/gitTagVersion.h
# sed -i -e "s/\"$old_tag\"/\"$new_tag\"/g" $GITHUB_WORKSPACE/src/gitTagVersion.h

oldversionbits=( ${old_tag//./ } )
oldmajorversion=${oldversionbits[0]//[!0-9]/};
oldminorversion=${oldversionbits[1]//[!0-9]/};
oldpatchversion=${oldversionbits[2]//[!0-9]/};

newversionbits=( ${new_tag//./ } )
newmajorversion=${newversionbits[0]//[!0-9]/};
newminorversion=${newversionbits[1]//[!0-9]/};
newpatchversion=${newversionbits[2]//[!0-9]/};

sed -i -e "s/LGFX_VERSION_MAJOR $oldmajorversion/LGFX_VERSION_MAJOR $newmajorversion/g" $GITHUB_WORKSPACE/src/gitTagVersion.h
sed -i -e "s/LGFX_VERSION_MINOR $oldminorversion/LGFX_VERSION_MINOR $newminorversion/g" $GITHUB_WORKSPACE/src/gitTagVersion.h
sed -i -e "s/LGFX_VERSION_PATCH $oldpatchversion/LGFX_VERSION_PATCH $newpatchversion/g" $GITHUB_WORKSPACE/src/gitTagVersion.h

cat $GITHUB_WORKSPACE/src/gitTagVersion.h
fi

Expand Down
51 changes: 33 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# LovyanGFX

LCD graphics library (for ESP32 SPI or 8bit Parallel / ATSAMD51 SPI).
LCD graphics library (for ESP32 SPI,I2C,8bitParallel / ATSAMD51 SPI).
M5Stack / M5StickC / TTGO T-Watch / ODROID-GO / ESP-WROVER-KIT / WioTerminal / and more...
[![examples](http://img.youtube.com/vi/SMOHRPqUZcQ/0.jpg)](http://www.youtube.com/watch?v=SMOHRPqUZcQ "examples")
[![examples](http://img.youtube.com/vi/F5gsp41Elac/0.jpg)](http://www.youtube.com/watch?v=F5gsp41Elac "MultiPanel")

概要 Overview.
----------------
ESP32とSPIまたは8ビットパラレル接続のLCD / ATSAMD51とSPI接続のLCDの組み合わせで動作するグラフィックライブラリです。
This is a graphics library that works with a combination of ESP32 with SPI or 8-bit parallel connection and ATSAMD51 with SPI connection to the LCD. (see compatibility list below).
ESP32とSPI,I2C,8ビットパラレル接続のLCD / ATSAMD51とSPI接続のLCDの組み合わせで動作するグラフィックライブラリです。
This is a graphics library that works with a combination of ESP32 with SPI,I2C,8-bit parallel connection and ATSAMD51 with SPI connection to the LCD. (see compatibility list below).

[AdafruitGFX](https://github.com/adafruit/Adafruit-GFX-Library)[TFT_eSPI](https://github.com/Bodmer/TFT_eSPI) と互換性をある程度持ちつつ、より高機能・高速動作を目標としています。

Expand All @@ -35,24 +35,29 @@ This library has the following advantages.
- ESP-IDF
- Arduino ESP32
- Arduino ATSAMD51 (Seeed)
- PlatformIO

- ディスプレイ Displays
- GC9A01
- GDEW0154M09 (M5Stack CoreInk)
- HX8357
- ILI9163
- ILI9341 (WioTerminal, ESP-WROVER-KIT, ODROID-GO, LoLin D32 Pro, WiFiBoy Pro)
- ILI9342 (M5Stack, M5Stack Core2)
- ILI9481
- ILI9486
- ILI9488 (Makerfabs Touch with Camera)
- SSD1351
- ST7735 (M5StickC, TTGO T-Wristband, TTGO TS, LoLin D32 Pro, WiFiBoy mini)
- ST7789 (M5StickCPlus, TTGO T-Watch, ESP-WROVER-KIT, Makerfabs MakePython, DSTIKE D-duino-32 XS)
- ST7796
- IT8951 (M5Paper)
- GDEW0154M09 (M5Stack CoreInk)
- SH110x (SH1106, SH1107, M5UnitOLED)
- SSD1306 (SSD1309)
- SSD1327
- SSD1331
- SSD1351 (SSD1357)
- ST7735 (M5StickC, TTGO T-Wristband, TTGO TS, LoLin D32 Pro, WiFiBoy mini, PyBadge)
- ST7789 (M5StickCPlus, TTGO T-Watch, ESP-WROVER-KIT, Makerfabs MakePython, DSTIKE D-duino-32 XS)
- ST7796 (WT32-SC01)

- タッチパネル TouchScreens (only ESP32)
- I2C FT5x06 / FT6x36
- タッチスクリーン TouchScreens (only ESP32)
- I2C FT5x06 (FT5206, FT5306, FT5406, FT6206, FT6236, FT6336, FT6436)
- I2C GT911
- SPI XPT2046
- SPI STMPE610
Expand All @@ -61,6 +66,7 @@ This library has the following advantages.
上記対応機種とコマンド体系の類似したLCDパネルであれば対応可能ですが、当方で入手し動作確認が取れたもののみ正式対応としています。
対応要望を頂けた機種には優先的に対応を検討致します。

setting examples is [src/lgfx_user](src/lgfx_user)
This library is also compatible with the above models and LCD panels with a similar command system,
but only those that have been obtained and confirmed to work are officially supported.

Expand Down Expand Up @@ -90,16 +96,25 @@ This library is also compatible with the above models and LCD panels with a simi
// #define LGFX_WIFIBOY_MINI // WiFiBoy mini
// #define LGFX_MAKERFABS_TOUCHCAMERA // Makerfabs Touch with Camera
// #define LGFX_MAKERFABS_MAKEPYTHON // Makerfabs MakePython
// #define LGFX_WIO_TERMINAL // Wio Terminal
// #define LGFX_WT32_SC01 // Seeed WT32-SC01
// #define LGFX_WIO_TERMINAL // Seeed Wio Terminal
// #define LGFX_PYBADGE // Adafruit PyBadge

#define LGFX_AUTODETECT // 自動認識 (M5Stack, M5StickC/CPlus, ODROID-GO, TTGO T-Watch, TTGO T-Wristband, LoLin D32 Pro, ESP-WROVER-KIT)
#define LGFX_AUTODETECT // 自動認識 (D-duino-32 XS, PyBadge はパネルID読取りが出来ないため自動認識の対象から外れています)

// 複数機種の定義を行うか、LGFX_AUTODETECTを定義することで、実行時にボードを自動認識します。


// v1.0.0 を有効にします(v0からの移行期間の特別措置です。これを書かない場合は旧v0系で動作します。)
#define LGFX_USE_V1


// ヘッダをincludeします。
#include <LovyanGFX.hpp>

#include <LGFX_AUTODETECT.hpp> // クラス"LGFX"を用意します
// #include <lgfx_user/LGFX_ESP32_sample.hpp> // またはユーザ自身が用意したLGFXクラスを準備します

static LGFX lcd; // LGFXのインスタンスを作成。
static LGFX_Sprite sprite(&lcd); // スプライトを使う場合はLGFX_Spriteのインスタンスを作成。

Expand All @@ -109,9 +124,8 @@ static LGFX_Sprite sprite(&lcd); // スプライトを使う場合はLGFX_Sprite
// static TFT_eSprite sprite(&lcd); // TFT_eSpriteがLGFX_Spriteの別名として定義されます。


// 対応機種に無い構成で使う場合は、 examples/HowToUse/2_spi_setting.ino を参照してください。
// configフォルダのLGFX_Config_Custom.hppをコピーして環境に合わせて編集して、
// ここでincludeをするか、ファイルの内容をそのまま貼り付けて使用してください。
// 対応機種に無い構成で使う場合は、 examples/HowToUse/2_user_setting.ino を参照してください。
// また設定例はsrc/lgfx_userフォルダにもあります。


void setup(void)
Expand Down Expand Up @@ -465,9 +479,10 @@ main : [FreeBSD](license.txt)
TJpgDec : [original](src/lgfx/utility/lgfx_tjpgd.c) ChaN
Pngle : [MIT](https://github.com/kikuchan/pngle/blob/master/LICENSE) kikuchan
QRCode : [MIT](https://github.com/ricmoo/QRCode/blob/master/LICENSE.txt) Richard Moore and Nayuki
result : [MIT](https://github.com/bitwizeshift/result/blob/master/LICENSE) Matthew Rodusek
GFX font and GLCD font : [2-clause BSD](https://github.com/adafruit/Adafruit-GFX-Library/blob/master/license.txt) Adafruit Industries
Font 2,4,6,7,8 : [FreeBSD](https://github.com/Bodmer/TFT_eSPI/blob/master/license.txt) Bodmer
converted IPA font : [IPA Font License](src/lgfx/Fonts/IPA/IPA_Font_License_Agreement_v1.0.txt) IPA
efont : [3-Clause BSD](src/lgfx/Fonts/efont/COPYRIGHT.txt) The Electronic Font Open Laboratory
efont : [3-clause BSD](src/lgfx/Fonts/efont/COPYRIGHT.txt) The Electronic Font Open Laboratory
TomThumb font : [3-clause BSD](src/lgfx/Fonts/GFXFF/TomThumb.h) Brian J. Swetland / Vassilii Khachaturov / Dan Marks
18 changes: 13 additions & 5 deletions examples/HowToUse/1_simple_use/1_simple_use.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,25 @@
// #define LGFX_WIFIBOY_MINI // WiFiBoy mini
// #define LGFX_MAKERFABS_TOUCHCAMERA // Makerfabs Touch with Camera
// #define LGFX_MAKERFABS_MAKEPYTHON // Makerfabs MakePython
// #define LGFX_WIO_TERMINAL // Wio Terminal
// #define LGFX_WT32_SC01 // Seeed WT32-SC01
// #define LGFX_WIO_TERMINAL // Seeed Wio Terminal
// #define LGFX_PYBADGE // Adafruit PyBadge

#define LGFX_AUTODETECT // 自動認識 (M5Stack, M5StickC/CPlus, ODROID-GO, TTGO T-Watch, TTGO T-Wristband, LoLin D32 Pro, ESP-WROVER-KIT)
#define LGFX_AUTODETECT // 自動認識 (D-duino-32 XS, PyBadge はパネルID読取りが出来ないため自動認識の対象から外れています)

// 複数機種の定義を行うか、LGFX_AUTODETECTを定義することで、実行時にボードを自動認識します。


// v1.0.0 を有効にします(v0からの移行期間の特別措置です。これを書かない場合は旧v0系で動作します。)
#define LGFX_USE_V1


// ヘッダをincludeします。
#include <LovyanGFX.hpp>

#include <LGFX_AUTODETECT.hpp> // クラス"LGFX"を準備します
// #include <lgfx_user/LGFX_ESP32_sample.hpp> // またはユーザ自身が用意したLGFXクラスを準備します

static LGFX lcd; // LGFXのインスタンスを作成。
static LGFX_Sprite sprite(&lcd); // スプライトを使う場合はLGFX_Spriteのインスタンスを作成。

Expand All @@ -39,9 +48,8 @@ static LGFX_Sprite sprite(&lcd); // スプライトを使う場合はLGFX_Sprite
// static TFT_eSprite sprite(&lcd); // TFT_eSpriteがLGFX_Spriteの別名として定義されます。


// 対応機種に無い構成で使う場合は、 examples/HowToUse/2_spi_setting.ino を参照してください。
// configフォルダのLGFX_Config_Custom.hppをコピーして環境に合わせて編集して、
// ここでincludeをするか、ファイルの内容をそのまま貼り付けて使用してください。
// 対応機種に無い構成で使う場合は、 examples/HowToUse/2_user_setting.ino を参照してください。
// また設定例はsrc/lgfx_userフォルダにもあります。


void setup(void)
Expand Down
Loading

0 comments on commit 4fc250c

Please sign in to comment.