「App:Library:LVGL:docs:3rd party libraries:QR code」の版間の差分
提供: robot-jp wiki
ナビゲーションに移動検索に移動82行目: | 82行目: | ||
Functions | 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) | + | <span style="background-color:#e7f2fa;color:#2980b9;">lv_obj_t *lv_qrcode_create(lv_obj_t *parent, lv_coord_t size, lv_color_t dark_color, lv_color_t light_color) </span> |
: Create an empty QR code (an <code style="color: #bb0000;">lv_canvas</code>) object. | : Create an empty QR code (an <code style="color: #bb0000;">lv_canvas</code>) object. | ||
:; Parameters | :; Parameters | ||
92行目: | 92行目: | ||
:: pointer to the created QR code object | :: pointer to the created QR code object | ||
− | ; lv_res_t lv_qrcode_update(lv_obj_t *qrcode, const void *data, uint32_t data_len) | + | <span style="background-color:#e7f2fa;color:#2980b9;">lv_res_t lv_qrcode_update(lv_obj_t *qrcode, const void *data, uint32_t data_len) </span> |
: Set the data of a QR code object | : Set the data of a QR code object | ||
:; Parameters | :; Parameters | ||
101行目: | 101行目: | ||
:: LV_RES_OK: if no error; LV_RES_INV: on error | :: LV_RES_OK: if no error; LV_RES_INV: on error | ||
− | ; void lv_qrcode_delete(lv_obj_t *qrcode) | + | <span style="background-color:#e7f2fa;color:#2980b9;">void lv_qrcode_delete(lv_obj_t *qrcode) </span> |
: DEPRECATED: Use normal lv_obj_del instead Delete a QR code object | : DEPRECATED: Use normal lv_obj_del instead Delete a QR code object | ||
:; Parameters | :; Parameters | ||
108行目: | 108行目: | ||
Variables | Variables | ||
− | + | const lv_obj_class_t lv_qrcode_class | |
| | | | ||
114行目: | 114行目: | ||
機能 | 機能 | ||
− | ; lv_obj_t * lv_qrcode_create(lv_obj_t * parent、lv_coord_t size、lv_color_t dark_color、lv_color_t light_color) | + | <span style="background-color:#e7f2fa;color:#2980b9;">lv_obj_t * lv_qrcode_create(lv_obj_t * parent、lv_coord_t size、lv_color_t dark_color、lv_color_t light_color)</span> |
: 空のQRコード(<code style="color: #bb0000;">lv_canvas</code>)オブジェクトを作成します。 | : 空のQRコード(<code style="color: #bb0000;">lv_canvas</code>)オブジェクトを作成します。 | ||
:; パラメーター | :; パラメーター | ||
124行目: | 124行目: | ||
:: 作成したQRコードオブジェクトへのポインタ | :: 作成したQRコードオブジェクトへのポインタ | ||
− | ; lv_res_t lv_qrcode_update(lv_obj_t * qrcode、const void * data、uint32_t data_len) | + | <span style="background-color:#e7f2fa;color:#2980b9;">lv_res_t lv_qrcode_update(lv_obj_t * qrcode、const void * data、uint32_t data_len)</span> |
: QRコードオブジェクトのデータを設定する | : QRコードオブジェクトのデータを設定する | ||
:; パラメーター | :; パラメーター | ||
133行目: | 133行目: | ||
:: LV_RES_OK:エラーがない場合。LV_RES_INV:エラー時 | :: LV_RES_OK:エラーがない場合。LV_RES_INV:エラー時 | ||
− | ; void lv_qrcode_delete(lv_obj_t * qrcode) | + | <span style="background-color:#e7f2fa;color:#2980b9;">void lv_qrcode_delete(lv_obj_t * qrcode)</span> |
: 非推奨:代わりに通常のlv_obj_delを使用してくださいQRコードオブジェクトを削除してください | : 非推奨:代わりに通常のlv_obj_delを使用してくださいQRコードオブジェクトを削除してください | ||
:; パラメーター | :; パラメーター | ||
140行目: | 140行目: | ||
変数 | 変数 | ||
− | + | const lv_obj_class_t lv_qrcode_class | |
|} | |} | ||
2022年6月29日 (水) 17:08時点における版
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 |