「App:Library:LVGL:docs:3rd party libraries:QR code」の版間の差分
提供: robot-jp wiki
ナビゲーションに移動検索に移動23行目: | 23行目: | ||
* Include the library: <code style="color: #bb0000;">#include "lv_lib_qrcode/lv_qrcode.h"</code> | * Include the library: <code style="color: #bb0000;">#include "lv_lib_qrcode/lv_qrcode.h"</code> | ||
* Test with the following code: | * Test with the following code: | ||
− | + | <syntaxhighlight lang="C++" style="border:1px dashed gray;"> | |
const char * data = "Hello world"; | const char * data = "Hello world"; | ||
31行目: | 31行目: | ||
/*Set data*/ | /*Set data*/ | ||
lv_qrcode_update(qr, data, strlen(data)); | lv_qrcode_update(qr, data, strlen(data)); | ||
+ | </syntaxhighlight> | ||
| | | | ||
* このリポジトリをダウンロードまたは複製します | * このリポジトリをダウンロードまたは複製します | ||
** GitHubからダウンロード | ** GitHubからダウンロード | ||
** クローン:git clone <nowiki>https://github.com/lvgl/lv_lib_qrcode.git</nowiki> | ** クローン:git clone <nowiki>https://github.com/lvgl/lv_lib_qrcode.git</nowiki> | ||
− | * ライブラリを含める:<code>#include "lv_lib_qrcode/lv_qrcode.h"</code> | + | * ライブラリを含める:<code style="color: #bb0000;">#include "lv_lib_qrcode/lv_qrcode.h"</code> |
* 次のコードでテストします。 | * 次のコードでテストします。 | ||
− | + | <syntaxhighlight lang="C++" style="border:1px dashed gray;"> | |
const char * data = "Hello world"; | const char * data = "Hello world"; | ||
45行目: | 46行目: | ||
/*データを設定*/ | /*データを設定*/ | ||
lv_qrcode_update(qr、data、strlen(data)); | lv_qrcode_update(qr、data、strlen(data)); | ||
+ | </syntaxhighlight> | ||
|} | |} | ||
113行目: | 115行目: | ||
; lv_obj_t * lv_qrcode_create(lv_obj_t * parent、lv_coord_t size、lv_color_t dark_color、lv_color_t light_color) | ; lv_obj_t * lv_qrcode_create(lv_obj_t * parent、lv_coord_t size、lv_color_t dark_color、lv_color_t light_color) | ||
− | : 空のQRコード(<code>lv_canvas</code>)オブジェクトを作成します。 | + | : 空のQRコード(<code style="color: #bb0000;">lv_canvas</code>)オブジェクトを作成します。 |
:; パラメーター | :; パラメーター | ||
::* 親-QRコードを作成するオブジェクトをポイントします | ::* 親-QRコードを作成するオブジェクトをポイントします |
2022年6月29日 (水) 17:04時点における版
https://docs.lvgl.io/8.2/libs/qrcode.html
QR code
英文 | 自動翻訳 |
---|---|
QR code generation with LVGL. Uses QR-Code-generator by nayuki. |
LVGLによるQRコードの生成。nayukiによるQRコードジェネレーターを使用しています。 |
Get started
英文 | 自動翻訳 |
---|---|
const char * data = "Hello world";
/*Create a 100x100 QR code*/
lv_obj_t * qr = lv_qrcode_create(lv_scr_act(), 100, lv_color_hex3(0x33f), lv_color_hex3(0xeef));
/*Set data*/
lv_qrcode_update(qr, data, strlen(data));
|
const char * data = "Hello world";
/ *100x100QRコードを作成します*/
lv_obj_t * qr = lv_qrcode_create(lv_scr_act()、100、lv_color_hex3(0x33f)、lv_color_hex3(0xeef));
/*データを設定*/
lv_qrcode_update(qr、data、strlen(data));
|
Notes
英文 | 自動翻訳 |
---|---|
|
|
Example
英文 | 自動翻訳 |
---|---|
Create a QR Code |
API
英文 | 自動翻訳 |
---|---|
Functions
Variables
|
変数
|