Page 1 of 1

GPIOset Default On (high)

Posted: 14 Jul 2023, 12:01
by devtone
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!

Re: GPIOset Default On (high)

Posted: 14 Jul 2023, 17:12
by Stuntteam
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.

Re: GPIOset Default On (high)

Posted: 15 Jul 2023, 00:14
by devtone
Awesome! Works as expected! I could not find this information in the documentation.

What about 6 and 4?