Skip to main content
Arduino

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Draft saved
Draft discarded
Cancel
4
  • 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? Commented Mar 17 at 3:14
  • Hi @romkey, I've added some additional information toward the end of my original post in reply to your questions. Thanks. Commented Mar 17 at 7:23
  • 1
    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);. Commented Mar 18 at 2:39
  • 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. Commented Mar 18 at 8:22

default

AltStyle によって変換されたページ (->オリジナル) /