I was wondering if using the FUNCTION_0 in addition to the pinMode(OUTPUT) is necessary but it did not improve matters.
pinMode(4, OUTPUT);
pinMode(5, OUTPUT); // (also tried pinMode(5, OUTPUT | FUNCTION_0) )
Any clues folks?
Cheers
Explore... Chat... Share...
Moderator: igrr
pinMode(4, OUTPUT);
pinMode(5, OUTPUT); // (also tried pinMode(5, OUTPUT | FUNCTION_0) )
PaulLowman wrote:I am using an Olimex Mod-WiFi-ESP8266-Dev module to control an anchor winch on my launch. It uses two gpio pins as outputs and I have allocated GPIO4 and GPIO5. The following code is used to set the mode but I have found that, although GPIO4 works fine connecting to GPIO5 causes the module to stop. The load is a 1K resistor to the base of a BC547 driving a relay. I see a voltage of 0V on GPIO5 and this does not change with digitalwrites to the pin.
I was wondering if using the FUNCTION_0 in addition to the pinMode(OUTPUT) is necessary but it did not improve matters.Code: Select allpinMode(4, OUTPUT);
pinMode(5, OUTPUT); // (also tried pinMode(5, OUTPUT | FUNCTION_0) )
Any clues folks?
Cheers
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]