Commit 4b1551af authored by devsaurus's avatar devsaurus
Browse files

update u8g2 to v2.23.18

parent 80e6cc1e
Subproject commit 7f2fc42af3d01fdfe2cc19320bdcfe693dd2b20d Subproject commit d4da8254220adf39db44faa52a0842967095d230
...@@ -21,6 +21,26 @@ config U8G2_I2C_SH1106_128X64_VCOMH0 ...@@ -21,6 +21,26 @@ config U8G2_I2C_SH1106_128X64_VCOMH0
bool "sh1106_i2c_128x64_vcomh0" bool "sh1106_i2c_128x64_vcomh0"
default "n" default "n"
config U8G2_I2C_SH1107_64X128
depends on U8G2_COMM_I2C
bool "sh1107_i2c_64x128"
default "n"
config U8G2_I2C_SH1107_SEEED_96X96
depends on U8G2_COMM_I2C
bool "sh1107_i2c_seeed_96x96"
default "n"
config U8G2_I2C_SH1107_128X128
depends on U8G2_COMM_I2C
bool "sh1107_i2c_128x128"
default "n"
config U8G2_I2C_SH1108_160X160
depends on U8G2_COMM_I2C
bool "sh1108_i2c_160x160"
default "n"
config U8G2_I2C_SSD1305_128X32_NONAME config U8G2_I2C_SSD1305_128X32_NONAME
depends on U8G2_COMM_I2C depends on U8G2_COMM_I2C
bool "ssd1305_i2c_128x32_noname" bool "ssd1305_i2c_128x32_noname"
...@@ -51,6 +71,11 @@ config U8G2_I2C_SSD1306_128X64_VCOMH0 ...@@ -51,6 +71,11 @@ config U8G2_I2C_SSD1306_128X64_VCOMH0
bool "ssd1306_i2c_128x64_vcomh0" bool "ssd1306_i2c_128x64_vcomh0"
default "n" default "n"
config U8G2_I2C_SSD1306_128X64_ALT0
depends on U8G2_COMM_I2C
bool "ssd1306_i2c_128x64_alt0"
default "n"
config U8G2_I2C_SSD1309_128X64_NONAME0 config U8G2_I2C_SSD1309_128X64_NONAME0
depends on U8G2_COMM_I2C depends on U8G2_COMM_I2C
bool "ssd1309_i2c_128x64_noname0" bool "ssd1309_i2c_128x64_noname0"
...@@ -66,16 +91,61 @@ config U8G2_I2C_SSD1325_NHD_128X64 ...@@ -66,16 +91,61 @@ config U8G2_I2C_SSD1325_NHD_128X64
bool "ssd1325_i2c_nhd_128x64" bool "ssd1325_i2c_nhd_128x64"
default "n" default "n"
config U8G2_I2C_SSD1326_ER_256X32
depends on U8G2_COMM_I2C
bool "ssd1326_i2c_er_256x32"
default "n"
config U8G2_I2C_SSD1327_MIDAS_128X128
depends on U8G2_COMM_I2C
bool "ssd1327_i2c_midas_128x128"
default "n"
config U8G2_I2C_SSD1327_EA_W128128
depends on U8G2_COMM_I2C
bool "ssd1327_i2c_ea_w128128"
default "n"
config U8G2_I2C_SSD1327_SEEED_96X96 config U8G2_I2C_SSD1327_SEEED_96X96
depends on U8G2_COMM_I2C depends on U8G2_COMM_I2C
bool "ssd1327_i2c_seeed_96x96" bool "ssd1327_i2c_seeed_96x96"
default "n" default "n"
config U8G2_I2C_ST7567_64X32
depends on U8G2_COMM_I2C
bool "st7567_i2c_64x32"
default "n"
config U8G2_I2C_ST7588_JLX12864 config U8G2_I2C_ST7588_JLX12864
depends on U8G2_COMM_I2C depends on U8G2_COMM_I2C
bool "st7588_i2c_jlx12864" bool "st7588_i2c_jlx12864"
default "n" default "n"
config U8G2_I2C_ST75256_JLX256128
depends on U8G2_COMM_I2C
bool "st75256_i2c_jlx256128"
default "n"
config U8G2_I2C_ST75256_JLX256160
depends on U8G2_COMM_I2C
bool "st75256_i2c_jlx256160"
default "n"
config U8G2_I2C_ST75256_JLX240160
depends on U8G2_COMM_I2C
bool "st75256_i2c_jlx240160"
default "n"
config U8G2_I2C_ST75256_JLX25664
depends on U8G2_COMM_I2C
bool "st75256_i2c_jlx25664"
default "n"
config U8G2_I2C_ST75256_JLX172104
depends on U8G2_COMM_I2C
bool "st75256_i2c_jlx172104"
default "n"
config U8G2_I2C_UC1601_128X32 config U8G2_I2C_UC1601_128X32
depends on U8G2_COMM_I2C depends on U8G2_COMM_I2C
bool "uc1601_i2c_128X32" bool "uc1601_i2c_128X32"
...@@ -122,6 +192,11 @@ menuconfig U8G2_COMM_SPI ...@@ -122,6 +192,11 @@ menuconfig U8G2_COMM_SPI
select LUA_MODULE_SPI select LUA_MODULE_SPI
default "y" default "y"
config U8G2_SPI_HX1230_96X68
depends on U8G2_COMM_SPI
bool "hx1230_96x68"
default "n"
config U8G2_SPI_IL3820_V2_296X128 config U8G2_SPI_IL3820_V2_296X128
depends on U8G2_COMM_SPI depends on U8G2_COMM_SPI
bool "il3820_v2_296x128" bool "il3820_v2_296x128"
...@@ -132,6 +207,26 @@ config U8G2_SPI_IST3020_ERC19264 ...@@ -132,6 +207,26 @@ config U8G2_SPI_IST3020_ERC19264
bool "ist3020_erc19264" bool "ist3020_erc19264"
default "n" default "n"
config U8G2_SPI_LC7981_160X80
depends on U8G2_COMM_SPI
bool "lc7981_160x80"
default "n"
config U8G2_SPI_LC7981_160X160
depends on U8G2_COMM_SPI
bool "lc7981_160x160"
default "n"
config U8G2_SPI_LC7981_240X128
depends on U8G2_COMM_SPI
bool "lc7981_240x128"
default "n"
config U8G2_SPI_LC7981_240X64
depends on U8G2_COMM_SPI
bool "lc7981_240x64"
default "n"
config U8G2_SPI_LD7032_60X32 config U8G2_SPI_LD7032_60X32
depends on U8G2_COMM_SPI depends on U8G2_COMM_SPI
bool "ld7032_60x32" bool "ld7032_60x32"
...@@ -177,6 +272,31 @@ config U8G2_SPI_SH1106_128X64_VCOMH0 ...@@ -177,6 +272,31 @@ config U8G2_SPI_SH1106_128X64_VCOMH0
bool "sh1106_128x64_vcomh0" bool "sh1106_128x64_vcomh0"
default "n" default "n"
config U8G2_SPI_SH1107_64X128
depends on U8G2_COMM_SPI
bool "sh1107_64x128"
default "n"
config U8G2_SPI_SH1107_SEEED_96X96
depends on U8G2_COMM_SPI
bool "sh1107_seeed_96x96"
default "n"
config U8G2_SPI_SH1107_128X128
depends on U8G2_COMM_SPI
bool "sh1107_128x128"
default "n"
config U8G2_SPI_SH1108_160X160
depends on U8G2_COMM_SPI
bool "sh1108_160x160"
default "n"
config U8G2_SPI_SH1122_256X64
depends on U8G2_COMM_SPI
bool "sh1122_256x64"
default "n"
config U8G2_SPI_SSD1305_128X32_NONAME config U8G2_SPI_SSD1305_128X32_NONAME
depends on U8G2_COMM_SPI depends on U8G2_COMM_SPI
bool "ssd1305_128x32_noname" bool "ssd1305_128x32_noname"
...@@ -197,6 +317,11 @@ config U8G2_SPI_SSD1306_128X64_VCOMH0 ...@@ -197,6 +317,11 @@ config U8G2_SPI_SSD1306_128X64_VCOMH0
bool "ssd1306_128x64_vcomh0" bool "ssd1306_128x64_vcomh0"
default "n" default "n"
config U8G2_SPI_SSD1306_128X64_ALT0
depends on U8G2_COMM_SPI
bool "ssd1306_128x64_alt0"
default "n"
config U8G2_SPI_SSD1306_64X48_ER config U8G2_SPI_SSD1306_64X48_ER
depends on U8G2_COMM_SPI depends on U8G2_COMM_SPI
bool "ssd1306_64x48_er" bool "ssd1306_64x48_er"
...@@ -217,6 +342,11 @@ config U8G2_SPI_SSD1309_128X64_NONAME2 ...@@ -217,6 +342,11 @@ config U8G2_SPI_SSD1309_128X64_NONAME2
bool "ssd1309_128x64_noname2" bool "ssd1309_128x64_noname2"
default "n" default "n"
config U8G2_SPI_SSD1322_NHD_128X64
depends on U8G2_COMM_SPI
bool "ssd1322_nhd_128x64"
default "n"
config U8G2_SPI_SSD1322_NHD_256X64 config U8G2_SPI_SSD1322_NHD_256X64
depends on U8G2_COMM_SPI depends on U8G2_COMM_SPI
bool "ssd1322_nhd_256x64" bool "ssd1322_nhd_256x64"
...@@ -227,6 +357,21 @@ config U8G2_SPI_SSD1325_NHD_128X64 ...@@ -227,6 +357,21 @@ config U8G2_SPI_SSD1325_NHD_128X64
bool "ssd1325_nhd_128x64" bool "ssd1325_nhd_128x64"
default "n" default "n"
config U8G2_SPI_SSD1326_ER_256X32
depends on U8G2_COMM_SPI
bool "ssd1326_er_256x32"
default "n"
config U8G2_SPI_SSD1327_EA_W128128
depends on U8G2_COMM_SPI
bool "ssd1327_ea_w128128"
default "n"
config U8G2_SPI_SSD1327_MIDAS_128X128
depends on U8G2_COMM_SPI
bool "ssd1327_midas_128x128"
default "n"
config U8G2_SPI_SSD1327_SEEED_96X96 config U8G2_SPI_SSD1327_SEEED_96X96
depends on U8G2_COMM_SPI depends on U8G2_COMM_SPI
bool "ssd1327_seeed_96x96" bool "ssd1327_seeed_96x96"
...@@ -287,6 +432,16 @@ config U8G2_SPI_ST7565_ZOLEN_128X64 ...@@ -287,6 +432,16 @@ config U8G2_SPI_ST7565_ZOLEN_128X64
bool "st7565_zolen_128x64" bool "st7565_zolen_128x64"
default "n" default "n"
config U8G2_SPI_ST7567_64X32
depends on U8G2_COMM_SPI
bool "st7567_64x32"
default "n"
config U8G2_SPI_ST7567_ENH_DG128064I
depends on U8G2_COMM_SPI
bool "st7567_enh_dg128064i"
default "n"
config U8G2_SPI_ST7567_JLX12864 config U8G2_SPI_ST7567_JLX12864
depends on U8G2_COMM_SPI depends on U8G2_COMM_SPI
bool "st7567_jxl12864" bool "st7567_jxl12864"
...@@ -297,6 +452,16 @@ config U8G2_SPI_ST7567_PI_132X64 ...@@ -297,6 +452,16 @@ config U8G2_SPI_ST7567_PI_132X64
bool "st7567_pi_132x64" bool "st7567_pi_132x64"
default "n" default "n"
config U8G2_SPI_ST7586S_S028HN118A
depends on U8G2_COMM_SPI
bool "st7586s_s028hn118a"
default "n"
config U8G2_SPI_ST7586S_ERC240160
depends on U8G2_COMM_SPI
bool "st7586s_erc240160"
default "n"
config U8G2_SPI_ST7588_JLX12864 config U8G2_SPI_ST7588_JLX12864
depends on U8G2_COMM_SPI depends on U8G2_COMM_SPI
bool "st7588_jlx12864" bool "st7588_jlx12864"
...@@ -312,16 +477,56 @@ config U8G2_SPI_ST7920_S_192X32 ...@@ -312,16 +477,56 @@ config U8G2_SPI_ST7920_S_192X32
bool "st7920_s_192x32" bool "st7920_s_192x32"
default "n" default "n"
config U8G2_SPI_ST75256_JLX25664
depends on U8G2_COMM_SPI
bool "st75256_jlx25664"
default "n"
config U8G2_SPI_ST75256_JLX172104 config U8G2_SPI_ST75256_JLX172104
depends on U8G2_COMM_SPI depends on U8G2_COMM_SPI
bool "st75256_jlx172104" bool "st75256_jlx172104"
default "n" default "n"
config U8G2_SPI_ST75256_JLX240160
depends on U8G2_COMM_SPI
bool "st75256_jlx240160"
default "n"
config U8G2_SPI_ST75256_JLX256128 config U8G2_SPI_ST75256_JLX256128
depends on U8G2_COMM_SPI depends on U8G2_COMM_SPI
bool "st75256_jlx256128" bool "st75256_jlx256128"
default "n" default "n"
config U8G2_SPI_ST75256_JLX256160
depends on U8G2_COMM_SPI
bool "st75256_jlx256160"
default "n"
config U8G2_SPI_T6963_240X128
depends on U8G2_COMM_SPI
bool "t6963_240x128"
default "n"
config U8G2_SPI_T6963_240X64
depends on U8G2_COMM_SPI
bool "t6963_240x64"
default "n"
config U8G2_SPI_T6963_256X64
depends on U8G2_COMM_SPI
bool "t6963_256x64"
default "n"
config U8G2_SPI_T6963_128X64
depends on U8G2_COMM_SPI
bool "t6963_128x64"
default "n"
config U8G2_SPI_T6963_160X80
depends on U8G2_COMM_SPI
bool "t6963_160x80"
default "n"
config U8G2_SPI_UC1601_128X32 config U8G2_SPI_UC1601_128X32
depends on U8G2_COMM_SPI depends on U8G2_COMM_SPI
bool "uc1601_128X32" bool "uc1601_128X32"
......
This diff is collapsed.
# u8g2.disp Sub-Module
## u8g2.disp:clearBuffer()
Clears all pixel in the memory frame buffer.
See [u8g2 clearBuffer()](https://github.com/olikraus/u8g2/wiki/u8g2reference#clearbuffer).
## u8g2.disp:drawBox()
Draw a box (filled frame).
See [u8g2 drawBox()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawbox).
## u8g2.disp:drawCircle()
Draw a circle.
See [u8g2 drawCircle()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawcircle).
Note that parameter `opt` is optional and defaults to `u8g2.DRAW_ALL` if omitted.
## u8g2.disp:drawDisc()
Draw a filled circle.
See [u8g2 drawDisc()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawdisc).
Note that parameter `opt` is optional and defaults to `u8g2.DRAW_ALL` if omitted.
## u8g2.disp:drawEllipse()
Draw an ellipse.
See [u8g2 drawEllipse()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawellipse).
Note that parameter `opt` is optional and defaults to `u8g2.DRAW_ALL` if omitted.
## u8g2.disp:drawFilledEllipse()
Draw a filled ellipse.
See [u8g2 drawFilledEllipse()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawfilledellipse).
Note that parameter `opt` is optional and defaults to `u8g2.DRAW_ALL` if omitted.
## u8g2.disp:drawFrame()
Draw a frame (empty box).
See [u8g2 drawFrame()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawframe).
## u8g2.disp:drawGlyph()
Draw a single character.
See [u8g2 drawGlyph()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawglyph).
## u8g2.disp:drawHLine()
Draw a horizontal line.
See [u8g2 drawHLine()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawhline).
## u8g2.disp:drawLine()
Draw a line between two points.
See [u8g2 drawLine()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawline).
## u8g2.disp:drawPixel()
Draw a pixel.
See [u8g2 drawPixel()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawpixel).
## u8g2.disp:drawRBox()
Draw a box with round edges.
See [u8g2 drawRBox()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawrbox).
## u8g2.disp:drawRFrame()
Draw a frame with round edges.
See [u8g2 drawRFrame()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawrframe).
## u8g2.disp:drawStr()
Draw a string.
See [u8g2 drawStr()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawstr).
## u8g2.disp:drawTriangle()
Draw a triangle (filled polygon).
See [u8g2 drawTriangle()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawtriangle).
## u8g2.disp:drawUTF8()
Draw a string which is encoded as UTF-8.
See [u8g2 drawUTF8()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawutf8).
## u8g2.disp:drawVLine()
Draw a vertical line.
See [u8g2 drawVLine()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawvline).
## u8g2.disp:drawXBM()
Draw a XBM Bitmap.
See [u8g2 drawXBM()](https://github.com/olikraus/u8g2/wiki/u8g2reference#drawxbm).
XBM bitmaps are supplied as strings to `drawXBM()`. This off-loads all data handling from the u8g2 module to generic methods for binary files. See [graphics_test.lua](../../../lua_examples/u8glib/u8g_graphics_test.lua).
In contrast to the source code based inclusion of XBMs in upstream u8g2 library, it's required to provide precompiled binary files. This can be performed online with [Online-Utility's Image Converter](http://www.online-utility.org/image_converter.jsp): Convert from XBM to MONO format and upload the binary result.
## u8g2.disp:getAscent()
Returns the reference height of the glyphs above the baseline (ascent).
See [u8g2 getAscent()](https://github.com/olikraus/u8g2/wiki/u8g2reference#getascent).
## u8g2.disp:getDescent()
Returns the reference height of the glyphs below the baseline (descent).
See [u8g2 getDescent()](https://github.com/olikraus/u8g2/wiki/u8g2reference#getdescent).
## u8g2.disp:getStrWidth()
Return the pixel width of string.
See [u8g2 getStrWidth()](https://github.com/olikraus/u8g2/wiki/u8g2reference#getstrwidth).
## u8g2.disp:getUTF8Width()
Return the pixel width of an UTF-8 encoded string.
See [u8g2 getUTF8Width()](https://github.com/olikraus/u8g2/wiki/u8g2reference#getutf8width).
## u8g2.disp:sendBuffer()
Send the content of the memory frame buffer to the display.
See [u8g2 sendBuffer()](https://github.com/olikraus/u8g2/wiki/u8g2reference#sendbuffer).
## u8g2.disp:setBitmapMode()
Define bitmap background color mode.
See [u8g2 setBitmapMode()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setbitmapmode).
## u8g2.disp:setContrast()
Set the contrast or brightness.
See [u8g2 setContrast()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setconstrast).
## u8g2.disp:setDisplayRotation()
Changes the display rotation.
See [u8g2 setDisplayRotation()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setdisplayrotation).
## u8g2.disp:setDrawColor()
Defines the bit value (color index) for all drawing functions.
See [u8g2 setDrawColor()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setdrawcolor).
## u8g2.disp:setFlipMode()
Set flip (180 degree rotation) mode.
See [u8g2 setFlipMode()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setflipmode).
## u8g2.disp:setFont()
Define a u8g2 font for the glyph and string drawing functions. They can be supplied as strings or compiled into the firmware image. They are available as `u8g2.<font_name>` in Lua.
See [u8g2 setFont()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setfont).
## u8g2.disp:setFontDirection()
Set the drawing direction of all strings or glyphs.
See [u8g2 setFontDirection()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontdirection).
## u8g2.disp:setFontMode()
Define font background color mode.
See [u8g2 setFontMode()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontmode).
## u8g2.disp:setFontPosBaseline()
Change the reference position for the glyph and string draw functions to "baseline".
See [u8g2 setFontPosBaseline()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontposbaseline).
## u8g2.disp:setFontPosBottom()
Change the reference position for the glyph and string draw functions to "bottom".
See [u8g2 setFontPosBottom()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontposbottom).
## u8g2.disp:setFontPosTop()
Change the reference position for the glyph and string draw functions to "top".
See [u8g2 setFontPosTop()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontpostop).
## u8g2.disp:setFontPosCenter()
Change the reference position for the glyph and string draw functions to "center".
See [u8g2 setFontPosCenter()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontposcenter).
## u8g2.disp:setFontRefHeightAll()
Set ascent and descent calculation mode to "highest and lowest glyph".
See [u8g2 setFontRefHeightAll()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontrefheightall).
## u8g2.disp:setFontRefHeightExtendedText()
Set ascent and descent calculation mode to "highest of [A1(], lowest of [g(]".
See [u8g2 setFontRefHeightExtendedText()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontrefheightextendedtext).
## u8g2.disp:setFontRefHeightText()
Set ascent and descent calculation mode to "highest of [A1], lowest of [g]".
See [u8g2 setFontRefHeightText()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontrefheighttext).
## u8g2.disp:setPowerSave()
Activate or disable power save mode of the display.
See [u8g2 setPowerSave()](https://github.com/olikraus/u8g2/wiki/u8g2reference#setpowersave).
...@@ -51,7 +51,6 @@ pages: ...@@ -51,7 +51,6 @@ pages:
- 'struct': 'en/modules/struct.md' - 'struct': 'en/modules/struct.md'
- 'tmr': 'en/modules/tmr.md' - 'tmr': 'en/modules/tmr.md'
- 'u8g2': 'en/modules/u8g2.md' - 'u8g2': 'en/modules/u8g2.md'
- 'u8g2 Display': 'en/modules/u8g2_disp.md'
- 'uart': 'en/modules/uart.md' - 'uart': 'en/modules/uart.md'
- 'wifi': 'en/modules/wifi.md' - 'wifi': 'en/modules/wifi.md'
- 'ws2812': 'en/modules/ws2812.md' - 'ws2812': 'en/modules/ws2812.md'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment