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

SDK • Re: Bewildered by SPI and 74HC595 used to drive 8 LED

$
0
0
AARGH! It was an ID 10 T(1.) error!

Thank the gods I use a 10K pullup. I'd counted wrong on the pins and had tied SRCLR_PIN to (pin 13 GND) instead of pin 14 GP10 (it's active low, so I was continually clearing the shift-register). Holy crap, I read the SDK front and back, I read the RP2040 datasheet until my eyes hurt -- good learning took place. The Edited code posted above works just fine now that's straightened out. (enjoy your young eyes while you can, as you near 60 they play tricks on you)

The bewilderment has been lifted. (I haven't had one of these in a long while. Seems the most important learning comes this way) On to the next.

footnotes:
1. remove the whitespace from error to reveal all.

Statistics: Posted by drankinatty — Tue Jul 29, 2025 8:22 am



Viewing all articles
Browse latest Browse all 8621

Trending Articles