https://docs.wemos.cc/en/latest/d1_mini ... _0_66.html
After a few hours trying to make the two buttons work and looking for some docs, I'm starting to think that maybe I'm not understanding correctly how they work. First of all, if I have the display connected on top of the D1 mini instead of using an I2C cable, can I read the buttons state from any of the digital pins? I've looked at the schematic, but I'm not very good at understanding wiring. I've tried all pins without success.
Second, I've also tried using the i2c module, but without success. If I understood correctly, I should first write an I2C command and the read, right? Something like:
Code: Select all
i2c.writeto(49, b'4')
i2c.readfrom(49, 1)