File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 "url" : " https://github.com/M5Stack/M5Module-QRCode.git"
1111 },
1212 "dependencies" : {
13- "M5Unified" : " * " ,
13+ "M5Unified" : " >=0.2.21 " ,
1414 "M5GFX" : " *"
1515 },
1616 "version" : " 1.0.1" ,
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ category=Device Control
88url =https://github.com/m5stack/M5Module-QRCode.git
99architectures =esp32
1010includes =M5ModuleQRCode.h
11- depends =M5Unified
11+ depends =M5Unified (>=0.2.21)
Original file line number Diff line number Diff line change @@ -64,13 +64,11 @@ bool M5ModuleQRCode::_init_pi4ioe5v6408()
6464 _LOG_DEBUG (" pi4ioe5v6408 found at 0x%02x\n " , _config.pi4ioe5v6408_addr );
6565
6666 _pi4ioe5v6408->setDirection (CHANNEL_QRCODE_POWER_EN , true );
67- _pi4ioe5v6408->setPullMode (CHANNEL_QRCODE_POWER_EN , true );
68- _pi4ioe5v6408->enablePull (CHANNEL_QRCODE_POWER_EN , true );
67+ _pi4ioe5v6408->setPullMode (CHANNEL_QRCODE_POWER_EN , m5::IOExpander_Base::pull_up);
6968 _pi4ioe5v6408->setHighImpedance (CHANNEL_QRCODE_POWER_EN , false );
7069
7170 _pi4ioe5v6408->setDirection (CHANNEL_QRCODE_TRIG , true );
72- _pi4ioe5v6408->setPullMode (CHANNEL_QRCODE_TRIG , true );
73- _pi4ioe5v6408->enablePull (CHANNEL_QRCODE_TRIG , true );
71+ _pi4ioe5v6408->setPullMode (CHANNEL_QRCODE_TRIG , m5::IOExpander_Base::pull_up);
7472 _pi4ioe5v6408->setHighImpedance (CHANNEL_QRCODE_TRIG , false );
7573
7674 return true ;
You can’t perform that action at this time.
0 commit comments