These are chat archives for esp8266/Arduino

27th
Jan 2017
Martin Sloup
@arcao
Jan 27 2017 11:00

Do you someone use Brzo_I2C library? The ld returns bellow error after switching from SSD1306Wire to SSD1306Brzo.

ld.exe: esp8266_meteo_display.ino.elf section `.text' will not fit in region `iram1_0_seg'

Any idea how to solve? I am compiling it with a latest master branch of Arduino ESP8266 framework with Arduino IDE 1.8.1.

brutzler
@brutzler
Jan 27 2017 17:13
@bobcroft
ok thx for info. Your virus-scanner doesn't slow down compiling?
and what is EL-Client?
Nikolas Beutler
@biacz
Jan 27 2017 20:05
gentlemen, any idea why my esp8266 doesnt wake up from deep sleep? compiler doesnt complain :worried:
i should delete the password real quick :D
Victor Tseng
@Palatis
Jan 27 2017 20:05
did you connect IO16 back to RESET?
@Palatis nope. didnt read about that honestly. ill check
makes sense though
Victor Tseng
@Palatis
Jan 27 2017 20:08
well IO16 is the "wake up pin" from internal RTC (a tiny little companion low-speed MCU) which does the wake-up thing for you
Nikolas Beutler
@biacz
Jan 27 2017 20:08
works already. tyvm!
Victor Tseng
@Palatis
Jan 27 2017 20:08
it just pulls the reset pin
Nikolas Beutler
@biacz
Jan 27 2017 21:44
@biacz
guys how it is called again if you assign now = millis() and then wait for now > wait (2sec for example) and assign now with the current time. i know its explained badly
its the "better" way of using delay()
i am too tired to do it out of my head. want to copy it from somewhere
got it, thanks
Michael Miller
@Makuna
Jan 27 2017 23:12
@biacz Not sure there is a specific name for the technique, but in general, programming without "Delay()" ;-)
There is a specific technique that MUST be used for the unsigned math to work flawlessly ever through the rollover.
Always work with the delta.
uint32_t then; // initialized in setup to millis()
void loop() {
    uint32_t now = millis();
    if (now - then > 2000) { // delta > my time to wait, two seconds
        // blah blah
       then = now;
    }
Nikolas Beutler
@biacz
Jan 27 2017 23:29
@Makuna thanks!