GPIOset Default On (high)

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Post Reply
Message
Author
devtone
New user
Posts: 4
Joined: 05 Aug 2017, 21:03

GPIOset Default On (high)

#1 Post by devtone » 14 Jul 2023, 12:01

When settings GPIOset to "ON" aka "10;setGPIO=ON;", it sets all output GPIO's to "high", turning on lights and switches. Is it possible to change this default behavior? I don't think the sourcecode is available? It would be an easy fix I guess.

Groeten uit Brabant!

User avatar
Stuntteam
Site Beheer
Posts: 789
Joined: 27 Jan 2016, 16:46

Re: GPIOset Default On (high)

#2 Post by Stuntteam » 14 Jul 2023, 17:12

A number of pins (4,5,6, and 7) are setup for configuration tasks..

For example:
Mega Pin7: connected to ground = no pullup on the RF module signal (default = not connected, pullup enabled)
Mega Pin5: connected to ground = GPIO low on startup (default = not connected, GPIO high on startup)

Try to connect pin 5 to ground and see if that gives the desired result.
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

devtone
New user
Posts: 4
Joined: 05 Aug 2017, 21:03

Re: GPIOset Default On (high)

#3 Post by devtone » 15 Jul 2023, 00:14

Awesome! Works as expected! I could not find this information in the documentation.

What about 6 and 4?

Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests