pop48m wrote:but no progress yet.
Did you called pinMode(2, OUTPUT) in your setup() ?
Explore... Chat... Share...
pop48m wrote:but no progress yet.
martinayotte wrote:pop48m wrote:but no progress yet.
Did you called pinMode(2, OUTPUT) in your setup() ?
/*
The obligatory blinky demo
Blink an LED on GPIO pin 2
*/
#include <ets_sys.h>
#include <osapi.h>
#include <gpio.h>
// see eagle_soc.h for these definitions
#define LED_GPIO 2
#define LED_GPIO_MUX PERIPHS_IO_MUX_GPIO2_U
#define LED_GPIO_FUNC FUNC_GPIO2
#define DELAY 500000 /* microseconds */
extern void ets_wdt_enable (void);
extern void ets_wdt_disable (void);
void user_rf_pre_init(void)
{
}
void user_init(void)
{
uint8_t state=0;
ets_wdt_enable();
ets_wdt_disable();
// Configure pin as a GPIO
PIN_FUNC_SELECT(LED_GPIO_MUX, LED_GPIO_FUNC);
for(;;)
{
GPIO_OUTPUT_SET(LED_GPIO, state);
os_delay_us(DELAY);
state ^=1;
}
}
martinayotte wrote:I don't see any thing wrong there.
And it doesn't work ?
Do you have proper power supply, because bad one can produce crashes even before reaching user_init()
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[…]