Post topics, source code that relate to the Arduino Platform

User avatar
By diffstorm
#64744 Hello All,

I would like to ask about my problem.
I have used the GPIO12 as output and driving a mosfet using the pin.
The problem is GPIO12 is logic high for 500 ms on boot. It creates a pulse on boot every time.

I have tried to add code on Setup() section to set it to low on boot but it still behaves the same.

Code: Select allpinMode(12, OUTPUT);
digitalWrite(12, 0);


I think the problem is in SDK level, so it takes about 500 ms to reach in Setup() in Arduino sketch.

What can I do to figure it out?

My config:
QIO, 40Mhz, 160Mhz, 1MB Flash

Thanks in advance.
User avatar
By piersfinlayson
#64747
diffstorm wrote:Hello All,

I would like to ask about my problem.
I have used the GPIO12 as output and driving a mosfet using the pin.
The problem is GPIO12 is logic high for 500 ms on boot. It creates a pulse on boot every time.

I have tried to add code on Setup() section to set it to low on boot but it still behaves the same.

Code: Select allpinMode(12, OUTPUT);
digitalWrite(12, 0);


I think the problem is in SDK level, so it takes about 500 ms to reach in Setup() in Arduino sketch.

What can I do to figure it out?

My config:
QIO, 40Mhz, 160Mhz, 1MB Flash

Thanks in advance.


Thread about this here: viewtopic.php?f=13&t=951