From 8fb44c97a4ca3387dd2038945e1a3d073aa3f0ae Mon Sep 17 00:00:00 2001 From: Anuragh K P Date: Wed, 10 Jul 2024 18:39:59 +0530 Subject: [PATCH] Fix text size setting method in RFID_RC522 example Corrected the method call for setting text size from 'M5.lcd.setTextSize' to 'M5.Lcd.setTextSize' to match the case sensitivit of the M5Stack library functions. This change ensures that the text size is set correctly when the RFID_RC522 example sketch i run on M5Stack devices. --- examples/Unit/RFID_RC522/RFID_RC522.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Unit/RFID_RC522/RFID_RC522.ino b/examples/Unit/RFID_RC522/RFID_RC522.ino index 2790768f..868aafb0 100644 --- a/examples/Unit/RFID_RC522/RFID_RC522.ino +++ b/examples/Unit/RFID_RC522/RFID_RC522.ino @@ -23,7 +23,7 @@ MFRC522 mfrc522(0x28); // Create MFRC522 instance. 创建MFRC522实例 void setup() { M5.begin(); // Init M5Stack. 初始化M5Stack M5.Power.begin(); // Init power 初始化电源模块 - M5.lcd.setTextSize(2); // Set the text size to 2. 设置文字大小为2 + M5.Lcd.setTextSize(2); // Set the text size to 2. 设置文字大小为2 M5.Lcd.println("MFRC522 Test"); Wire.begin(); // Wire init, adding the I2C bus. Wire初始化, 加入i2c总线 @@ -45,4 +45,4 @@ void loop() { M5.Lcd.print(mfrc522.uid.uidByte[i], HEX); } M5.Lcd.println(""); -} \ No newline at end of file +}