“U8glib库”的版本间的差异

来自YFRobotwiki
跳转至: 导航搜索
(以“ [http://www.json.org/json-zh.html JSON 介绍] json library from [https://github.com/bblanchon/ArduinoJson github arduino Json] [https://github.com/bblanchon/...”为内容创建页面)
 
 
(未显示1个用户的4个中间版本)
第1行: 第1行:
  
[http://www.json.org/json-zh.html JSON 介绍]
+
U8glib github: [https://github.com/olikraus/u8glib github U8glib]
  
 +
U8glib github: [https://code.google.com/archive/p/u8glib google U8glib]
  
 +
[https://github.com/olikraus/u8glib/wiki Github U8glib wiki] | [[ |论坛简介贴地址]]
  
json library from [https://github.com/bblanchon/ArduinoJson github arduino Json]
+
[https://github.com/olikraus/U8glib_Arduino/releases/tag/1.19.1 download U8glib_Arduino]
 
+
[https://github.com/bblanchon/ArduinoJson/wiki Github arduino json wiki] | [http://www.yfrobot.com/thread-11875-1-1.html JSON Library 论坛简介贴地址]
+
 
+
download from the address:[https://github.com/bblanchon/ArduinoJson/releases zip address]
+
  
 
{| border="0" cellpadding="10" width="100%"
 
{| border="0" cellpadding="10" width="100%"
 
|-
 
|-
 
|width="60%" valign="top" align="left"|
 
|width="60%" valign="top" align="left"|
Welcome to the user manual for the Arduino JSON library, an elegant and efficient JSON library for embedded systems.
+
A graphics library with support for many different monochrome displays.
  
It's designed to have the most intuitive API, the smallest footprint and works without any allocation on the heap (no malloc).
+
译:一个支持许多不同单色显示屏的图形库。
  
It has been written with Arduino in mind, but it isn't linked to Arduino libraries so you can use this library in any other C++ project.
+
[https://github.com/olikraus/u8glib/wiki/device u8glib 支持的显示屏列表]
  
[https://github.com/bblanchon/ArduinoJson/wiki/Using%20the%20library%20with%20Arduino Using the library with Arduino]
+
* 支持不同驱动芯片及不同分辨率;
  
 +
* 支持不同连接方式(硬件SPI、软件SPI及8位并行控制方式);
 +
 +
* 支持Arduino、AVR及ARM等不同芯片,CPU升级时,移植代价比较小;
 +
 +
* 支持多种字体(几十种),从4像素到42像素都有;
 +
 +
* 支持更换或定制字体;
 +
 +
* 支持横屏或竖屏显示;
 +
 +
......
 
<br>
 
<br>
 +
  
 
<font color="orange" size="+2">'''Examples'''</font><br>
 
<font color="orange" size="+2">'''Examples'''</font><br>
第36行: 第46行:
  
 
:-[[ JsonUdpBeacon]] : Json Udp Beacon - Json UDP Beacon 例程
 
:-[[ JsonUdpBeacon]] : Json Udp Beacon - Json UDP Beacon 例程
 
<font color="orange" size="+2">'''Extra Examples'''</font><br>
 
 
:-[http://www.yfrobot.com/forum.php?mod=attachment&aid=MTU2NnxiNTY4OWQ1OXwxNDcxODQ4NzUxfDJ8MTE4NzU%3D JsonHttpClientWithESP8266] : Json Http Client With ESP8266 -  Json HTTP Client例程(获取网络Json数据并解析)
 
 
:-[http://www.yfrobot.com/forum.php?mod=attachment&aid=MTU2OHwxZTQ2MmIxMnwxNDcxODQ4NzUxfDJ8MTE4NzU%3D JsonServerWithESP8266] : Json Server With ESP8266 - Json Server例程(生成Json数据并发布)
 
  
  
第49行: 第53行:
 
|width="40%" valign="top" align="left"|
 
|width="40%" valign="top" align="left"|
 
<br>
 
<br>
<font color="orange" size="+2">'''Json Library Reference'''</font><br><br>
+
<font color="orange" size="+2">'''[https://github.com/olikraus/u8glib/wiki/userreference U8glib Reference]'''</font><br><br>
 +
 
 +
- <font color="forestgreen">begin</font>
 +
 
 +
- <font color="forestgreen">disableCursor</font>
 +
 
 +
- <font color="forestgreen">drawBitmap</font>
 +
 
 +
- <font color="forestgreen">drawBitmapP</font>
 +
 
 +
- <font color="forestgreen">drawBox</font>
 +
 
 +
- <font color="forestgreen">drawCircle</font>
 +
 
 +
- <font color="forestgreen">drawDisc</font>
 +
 
 +
- <font color="forestgreen">drawEllipse</font>
 +
 
 +
- <font color="forestgreen">drawFilledEllipse</font>
 +
 
 +
- <font color="forestgreen">drawFrame</font>
 +
 
 +
- <font color="forestgreen">drawHLine</font>
 +
 
 +
- <font color="forestgreen">drawLine</font>
 +
 
 +
- <font color="forestgreen">drawRBox</font>
 +
 
 +
- <font color="forestgreen">drawRFrame</font>
 +
 
 +
- <font color="forestgreen">drawStr</font>
 +
 
 +
- <font color="forestgreen">drawStr90</font>
 +
 
 +
- <font color="forestgreen">drawStr180</font>
 +
 
 +
- <font color="forestgreen">drawStr270</font>
 +
 
 +
- <font color="forestgreen">drawStrP</font>
 +
 
 +
- <font color="forestgreen">drawStr90P</font>
 +
 
 +
- <font color="forestgreen">drawStr180P</font>
 +
 
 +
- <font color="forestgreen">drawStr270P</font>
 +
 
 +
- <font color="forestgreen">drawTriangle</font>
 +
 
 +
- <font color="forestgreen">drawVLine</font>
 +
 
 +
- <font color="forestgreen">drawXBM</font>
 +
 
 +
- <font color="forestgreen">drawXBMP</font>
 +
 
 +
- <font color="forestgreen">enableCursor</font>
 +
 
 +
- <font color="forestgreen">firstPage</font>
 +
 
 +
- <font color="forestgreen">getColorIndex</font>
 +
 
 +
- <font color="forestgreen">getFontAscent</font>
 +
 
 +
- <font color="forestgreen">getFontDescent</font>
 +
 
 +
- <font color="forestgreen">getFontLineSpacing</font>
 +
 
 +
- <font color="forestgreen">getHeight</font>
  
- <font color="forestgreen">StaticJsonBuffer<200> jsonBuffer;</font>
+
- <font color="forestgreen">getMode</font>
  
为JSON对象树创建内存池(在栈上分配内存)
+
- <font color="forestgreen">getWidth</font>
  
参数
+
- <font color="forestgreen">getStrWidth</font>
:200:内存大小(字节) - 根据对象大小更改
+
  
- <font color="forestgreen">DynamicJsonBuffer  jsonBuffer;</font>
+
- <font color="forestgreen">InitSPI, InitHWSPI, Init8Bit InitComFn</font>
  
为JSON对象树创建内存池(在堆上分配内存)- 简单但效率低
+
- <font color="forestgreen">nextPage</font>
  
 +
- <font color="forestgreen">setColorIndex</font>
  
----
+
- <font color="forestgreen">setContrast</font>
  
 +
- <font color="forestgreen">setCursorColor</font>
  
- <font color="forestgreen">JsonObject& root = jsonBuffer.createObject();</font>
+
- <font color="forestgreen">setCursorFont</font>
  
创建对象树的根
+
- <font color="forestgreen">setCursorPos</font>
  
- <font color="forestgreen">root["sensor"] = "gps";</font>
+
- <font color="forestgreen">setCursorStyle</font>
  
在对象中添加值
+
- <font color="forestgreen">setDefaultBackgroundColor</font>
  
参数
+
- <font color="forestgreen">setDefaultForegroundColor</font>
:sensor:名称
+
:gps:值
+
  
- <font color="forestgreen">JsonArray& data = root.createNestedArray("data");</font>
+
- <font color="forestgreen">setDefaultMidColor</font>
  
在对象中添加一个嵌套的数组
+
- <font color="forestgreen">setFont</font>
  
参数
+
- <font color="forestgreen">setFontLineSpacingFactor</font>
:data:数组名
+
  
- <font color="forestgreen">data.add(double_with_n_digits(48.756080, 6));</font>
+
- <font color="forestgreen">setFontPosBaseline</font>
  
给data数组添加值
+
- <font color="forestgreen">setFontPosBottom</font>
  
参数
+
- <font color="forestgreen">setFontPosCenter</font>
:48756080:值
+
:6:保留小数位数
+
  
- <font color="forestgreen">root.printTo(Serial);</font>
+
- <font color="forestgreen">setFontPosTop</font>
  
打印输出
+
- <font color="forestgreen">setFontRefHeightAll</font>
  
参数
+
- <font color="forestgreen">setFontRefHeightExtendedText</font>
:48756080:值
+
  
例:{"sensor":"gps","time":1351824120,"data":[48.756080,2.302038]}
+
- <font color="forestgreen">setFontRefHeightText</font>
  
 +
- <font color="forestgreen">setHardwareBackup</font>
  
- <font color="forestgreen">root.prettyPrintTo(Serial);</font>
+
- <font color="forestgreen">setPrintPos</font>
  
打印输出(格式)
+
- <font color="forestgreen">setRGB</font>
  
 +
- <font color="forestgreen">setRot90</font>
  
----
+
- <font color="forestgreen">setRot180</font>
  
 +
- <font color="forestgreen">setRot270</font>
  
- <font color="forestgreen">JsonObject& root = jsonBuffer.parseObject(json);</font>
+
- <font color="forestgreen">setScale2x2</font>
  
解析json数据
+
- <font color="forestgreen">sleepOn</font>
  
- <font color="forestgreen">sensor = root["sensor"]</font>
+
- <font color="forestgreen">sleepOff</font>
  
取值
+
- <font color="forestgreen">undoRotation</font>
  
- <font color="forestgreen">latitude = root["data"][0];</font>
+
- <font color="forestgreen">undoScale</font>
"data":[48.756080,2.302038]
+
  
取值
+
- <font color="forestgreen">U8GLIB</font>
  
 
<br>
 
<br>

2016年11月17日 (四) 14:50的最后版本

U8glib github: github U8glib

U8glib github: google U8glib

Github U8glib wiki | [[ |论坛简介贴地址]]

download U8glib_Arduino

A graphics library with support for many different monochrome displays.

译:一个支持许多不同单色显示屏的图形库。

u8glib 支持的显示屏列表

  • 支持不同驱动芯片及不同分辨率;
  • 支持不同连接方式(硬件SPI、软件SPI及8位并行控制方式);
  • 支持Arduino、AVR及ARM等不同芯片,CPU升级时,移植代价比较小;
  • 支持多种字体(几十种),从4像素到42像素都有;
  • 支持更换或定制字体;
  • 支持横屏或竖屏显示;

......


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 例程



U8glib 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论坛