Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5251

General • Re: control a set of 15 inputs that output 15 outputs on Pico

$
0
0
Hi Gordon,

I may have, I didn't know this was a problem. I highlighted the text and pasted in your lines?

How do I re organise it please? This version seems to work okay, is there a way of debugging it please?

Kind regards

Colin
Yes, the last code you posted compiles and runs, although that doesn't mean it will work. What exactly is not working?

I am testing with Wokwi, which is an online emulator. It means I can compile the code and check for errors. It also has simulated hardware, so I've added a single LED and button. The code actually works, but I think the LED matrix should be initialised with all lows, so line 26 can be

Code:

        ledrow[j].low()
I can post the entire code if you need, but when you edit a line make sure you don't mess up the indentation, and be consistent with tabs or spaces. Spaces are preferred, but be consistent with the number of spaces you use to indent stuff. Usually your editor program will help you enforce this. In Wokwi, there are four spaces per indent, so my line of code there has eight spaces as it's indented twice.

Statistics: Posted by ame — Mon Sep 16, 2024 11:27 pm



Viewing all articles
Browse latest Browse all 5251

Trending Articles