/* ******************************************************************************* * Copyright (c) 2022 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 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() {}