GPIO Outputs
Posted: Mon Oct 19, 2015 1:06 am
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.
Any clues folks?
Cheers
I was wondering if using the FUNCTION_0 in addition to the pinMode(OUTPUT) is necessary but it did not improve matters.
Code: Select all
pinMode(4, OUTPUT);
pinMode(5, OUTPUT); // (also tried pinMode(5, OUTPUT | FUNCTION_0) )
Any clues folks?
Cheers