Timeline for Initializing both I2C devices of a RP2040 Rpi Pico with Earle Philhower Core
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 18 at 8:22 | comment | added | Malzon | Thanks very much @hcheung, I missed that error. I've made the correction you suggested and re-uploaded to the Raspberry Pi Pico, however the problem remains. There must be at least one other coding error in the OOP code. The circuit continues to work as expected when the earlier "function" code is uploaded so there is no wiring error. | |
Mar 18 at 8:19 | history | edited | Malzon | CC BY-SA 4.0 |
Per hcheung's observation, corrected mcp.pinMode(i,LOW) in MCPiic::init() to mcp.digitalWrite(i,LOW)
|
Mar 18 at 2:55 | review | Close votes | |||
Apr 3 at 3:14 | |||||
Mar 18 at 2:39 | comment | added | hcheung |
The mcp.pinMode(i,LOW); in the MCPiic::init() basically canceled what you are setting one line before mcp.pinMode(i,OUTPUT); , it should really be mcp.digitalWrite(i, LOW); .
|
|
Mar 17 at 7:23 | comment | added | Malzon | Hi @romkey, I've added some additional information toward the end of my original post in reply to your questions. Thanks. | |
Mar 17 at 7:21 | history | edited | Malzon | CC BY-SA 4.0 |
Added more information about how the MCP23017 connected LEDs (mis)behave when the second version of the code is uploaded.
|
Mar 17 at 3:14 | comment | added | romkey | Hi @Malzon - it might help if you told us what the second version does do. What do the LEDs do if they’re not "blinking sequentially"? And could you clarify what you mean by "sequentially"? One is on, then it turns off and the other turns on, then that one turns off and the first turns on? Or they both turn on and off at the same time? | |
S Mar 17 at 1:50 | review | First questions | |||
Mar 17 at 2:09 | |||||
S Mar 17 at 1:50 | history | asked | Malzon | CC BY-SA 4.0 |