「App:Library:LVGL:docs:3rd party libraries:QR code」の版間の差分
提供: robot-jp wiki
ナビゲーションに移動検索に移動(同じ利用者による、間の1版が非表示) | |||
10行目: | 10行目: | ||
|LVGLによるQRコードの生成。nayukiによるQRコードジェネレーターを使用しています。 | |LVGLによるQRコードの生成。nayukiによるQRコードジェネレーターを使用しています。 | ||
|} | |} | ||
+ | :[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]] | ||
48行目: | 49行目: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
+ | :[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]] | ||
58行目: | 60行目: | ||
* QR codes with less data are smaller, but they scaled by an integer number to best fit to the given size. | * QR codes with less data are smaller, but they scaled by an integer number to best fit to the given size. | ||
| | | | ||
− | * | + | * データ量の少ないQRコードは小さくなりますが、与えられたサイズに最適になるように整数倍でスケーリングされます。 |
|} | |} | ||
+ | :[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]] | ||
72行目: | 75行目: | ||
| | | | ||
|} | |} | ||
+ | :[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]] | ||
145行目: | 149行目: | ||
− | |||
− | |||
:[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]] | :[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]] |
2022年6月29日 (水) 17:09時点における最新版
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 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_res_t lv_qrcode_update(lv_obj_t *qrcode, const void *data, uint32_t data_len)
void lv_qrcode_delete(lv_obj_t *qrcode)
Variables const lv_obj_class_t lv_qrcode_class |
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_res_t lv_qrcode_update(lv_obj_t * qrcode、const void * data、uint32_t data_len)
void lv_qrcode_delete(lv_obj_t * qrcode)
変数 const lv_obj_class_t lv_qrcode_class |