Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Pins Used #6

Open
wookienow opened this issue Oct 26, 2017 · 1 comment
Open

Change Pins Used #6

wookienow opened this issue Oct 26, 2017 · 1 comment

Comments

@wookienow
Copy link

Hi,
Is there a way to change the pin mapping?
I have an already wired system.
Also is there a way to have active high for some pins and active low for other?
Thanks

@DarthKegRaider
Copy link

DarthKegRaider commented Aug 3, 2023

wookienow,

If you haven't already tried this, I'd edit the .py file once on your raspberry. It's all out in the open, Just change the order/pins that suit your wiring. I would give it a go anyway.

define the GPIO pins that will be used

try:
if gv.platform == 'pi': # If this will run on Raspberry Pi:
GPIO.setmode(GPIO.BOARD) #IO channels are identified by header connector pin numbers. Pin numbers are always the same regardless of Raspberry Pi board revision.
relay_pins = ["11","12","13","15","16","18","22","7","3","5","24","26"]
pin_rain_sense = 8
pin_relay = 10

Or, take a look at the previous "Issues". Someone already asked that question and it was answered.
#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants