diff --git a/embedded8266/0x00000.bin b/embedded8266/0x00000.bin index c440267..fadf7a1 100644 Binary files a/embedded8266/0x00000.bin and b/embedded8266/0x00000.bin differ diff --git a/embedded8266/0x40000.bin b/embedded8266/0x40000.bin index c85e2c2..bcccc35 100644 Binary files a/embedded8266/0x40000.bin and b/embedded8266/0x40000.bin differ diff --git a/embedded8266/Makefile b/embedded8266/Makefile index 13ae5b5..faab843 100644 --- a/embedded8266/Makefile +++ b/embedded8266/Makefile @@ -82,7 +82,9 @@ $(FW_FILE_2): $(TARGET_OUT) $(FW_TOOL) -eo $(TARGET_OUT) -es .irom0.text $@ -ec burn : $(FW_FILE_1) $(FW_FILE_2) - ($(ESPTOOL_PY) --port $(PORT) write_flash 0x00000 0x00000.bin 0x40000 0x40000.bin)||(true) + #($(ESPTOOL_PY) --port $(PORT) write_flash 0x00000 0x00000.bin 0x40000 0x40000.bin)||(true) #for '8266 + ($(ESPTOOL_PY) --port $(PORT) write_flash -fs 8m -fm dout 0x00000 0x00000.bin 0x40000 0x40000.bin)||(true) #for '8285 + #If you have space, MFS should live at 0x100000, if you don't it can also live at diff --git a/embedded8266/image.elf b/embedded8266/image.elf index e495ba1..991f7c8 100755 Binary files a/embedded8266/image.elf and b/embedded8266/image.elf differ diff --git a/embedded8266/user/user_main.c b/embedded8266/user/user_main.c index d42d462..8c70866 100644 --- a/embedded8266/user/user_main.c +++ b/embedded8266/user/user_main.c @@ -226,6 +226,16 @@ void ICACHE_FLASH_ATTR user_init(void) os_timer_setfn(&some_timer, (os_timer_func_t *)myTimer, NULL); os_timer_arm(&some_timer, 100, 1); + //Set GPIO16 for Input + WRITE_PERI_REG(PAD_XPD_DCDC_CONF, + (READ_PERI_REG(PAD_XPD_DCDC_CONF) & 0xffffffbc) | (uint32)0x1); // mux configuration for XPD_DCDC and rtc_gpio0 connection + + WRITE_PERI_REG(RTC_GPIO_CONF, + (READ_PERI_REG(RTC_GPIO_CONF) & (uint32)0xfffffffe) | (uint32)0x0); //mux configuration for out enable + + WRITE_PERI_REG(RTC_GPIO_ENABLE, + READ_PERI_REG(RTC_GPIO_ENABLE) & (uint32)0xfffffffe); //out disable + InitColorChord(); //Init colorchord StartHPATimer(); //Init the high speed ADC timer.