mirror of
https://github.com/m5stack/M5Stack.git
synced 2026-05-20 10:06:46 -07:00
29 lines
1.0 KiB
Arduino
29 lines
1.0 KiB
Arduino
/*
|
|
*******************************************************************************
|
|
* Copyright (c) 2023 by M5Stack
|
|
* Equipped with M5Core sample source code
|
|
* 配套 M5Core 示例源代码
|
|
* Visit for more information: https://docs.m5stack.com/en/core/gray
|
|
* 获取更多资料请访问: https://docs.m5stack.com/zh_CN/core/gray
|
|
*
|
|
* Describe: QRcode. 创建二维码
|
|
* Date: 2021/7/26
|
|
*******************************************************************************
|
|
*/
|
|
|
|
#include <M5Stack.h>
|
|
|
|
void setup() {
|
|
M5.begin(); // Init M5Stack. 初始化M5Stack
|
|
M5.Power.begin(); // Init power 初始化电源模块
|
|
M5.Lcd.qrcode(
|
|
"http://www.m5stack.com", 0, 0, 150,
|
|
6); // Create a QR code with a width of 150 QR code with version 6 at
|
|
// (0, 0). 在(0,0)处创建一个宽为150二维码版本为6的二维码
|
|
// Please select the appropriate QR code version according to the number of
|
|
// characters. 请根据字符数量选择合适的二维码版本
|
|
}
|
|
|
|
void loop() {
|
|
}
|