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

Python • Re: Script for waveshare relay module

$
0
0
Hi AME and B.Goode. You were absolutely right about the boards. Sorry about the confusion over 'hats'. I simply called the relay board a hat because it sits on top. I thought that classed it as a hat. Anyway. I have changed the pin numbers to 26, 16, and 13. I have added a sleep time, but do not fully understand, so I put import.time near the top and time.sleep (1) after the relay highs and also after the relay lows. Not sure if this is correct. I still only have GPIO 26 working? I have also removed the DAC-PRO hat temporaraly to see if there was any difference, but there was none. Thanks a lot.

Statistics: Posted by barrychilds — Fri Jun 21, 2024 10:58 am



Viewing all articles
Browse latest Browse all 1585

Trending Articles