U8g2库

来自YFRobotwiki
跳转至: 导航搜索


u8g2 github地址

u8g2 github_WIKI地址


简介


U8g2: Library for monochrome displays, version 2

U8g2 is a monochrome graphics library for embedded devices. U8g2 supports controller based (for example SSD1306) monochrome OLEDs and LCDs (See the U8g2/U8x8 setup guide for a complete list of supported display controller). The Arduino library U8g2 can be installed from the library manager of the Arduino IDE. U8g2 also includes U8x8 library:

U8g2 Includes all graphics procedures (line/box/circle draw). Supports many fonts. (Almost) no restriction on the font height. Requires some memory in the microcontroller to render the display. U8x8 Text output only (character) device. Only fonts allowed with fixed size per character (8x8 pixel). Writes directly to the display. No buffer in the microcontroller required.

......




。。。编辑中




Examples

- IndentedPrintExample : Indented Print - 缩进打印例程
- JsonGeneratorExample : Json Generator - Json 生成例程
- JsonHttpClient : Json Http Client - Json HTTP Client例程(获取网络Json数据并解析)
- JsonParserExample : Json Parser - Json 解析例程
- JsonServer : Json Server - Json Server例程(生成Json数据并发布)
- JsonUdpBeacon : Json Udp Beacon - Json UDP Beacon 例程



U8g2 Reference

- begin

- disableCursor

- drawBitmap

- drawBitmapP

- drawBox

- drawCircle

- drawDisc

- drawEllipse

- drawFilledEllipse

- drawFrame

- drawHLine

- drawLine

- drawRBox

- drawRFrame

- drawStr

- drawStr90

- drawStr180

- drawStr270

- drawStrP

- drawStr90P

- drawStr180P

- drawStr270P

- drawTriangle

- drawVLine

- drawXBM

- drawXBMP

- enableCursor

- firstPage

- getColorIndex

- getFontAscent

- getFontDescent

- getFontLineSpacing

- getHeight

- getMode

- getWidth

- getStrWidth

- InitSPI, InitHWSPI, Init8Bit InitComFn

- nextPage

- setColorIndex

- setContrast

- setCursorColor

- setCursorFont

- setCursorPos

- setCursorStyle

- setDefaultBackgroundColor

- setDefaultForegroundColor

- setDefaultMidColor

- setFont

- setFontLineSpacingFactor

- setFontPosBaseline

- setFontPosBottom

- setFontPosCenter

- setFontPosTop

- setFontRefHeightAll

- setFontRefHeightExtendedText

- setFontRefHeightText

- setHardwareBackup

- setPrintPos

- setRGB

- setRot90

- setRot180

- setRot270

- setScale2x2

- sleepOn

- sleepOff

- undoRotation

- undoScale

- U8GLIB






返回Arduino库菜单

返回首页

更多建议和问题欢迎反馈至 YFRobot论坛