Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Ivan Grokhotkov
@igrr
when we write to flash, we can only write "1" bits
ficeto
@ficeto
yeah...
or erase whole block?
Ivan Grokhotkov
@igrr
so then we can make status_update = 0x11 and status_updated=0xff
so you can always overwrite status without erasing
smth like that
and need to erase only when we store new command there
ficeto
@ficeto
sure
that block will not live more than the rest anyway :)
so erase each time the rest are erased is fine
Ivan Grokhotkov
@igrr
esp8266/Arduino#356
anyone tried PWM with the new SDK?
Russ Mathis
@RussMathis
what do you need tried?
Ivan Grokhotkov
@igrr
ok, yeah, analogWrite got broken with SDK 1.1.0
goes into WDT reset
ficeto
@ficeto
so i digged into GPIO WAKEUP_ENABLE a bit
and here is what it does:
when pin is set as WAKEUP (PULLUP/PULLDOWN)
at the point of calling pinMode(WAKEUP_PULLUP)
if the pin is HIGH, that will cause WDT reset
and sketch will restart
if HIGH, it will continue
Russ Mathis
@RussMathis
cool!
ficeto
@ficeto
too much HIGH :D one should be LOW
Russ Mathis
@RussMathis
So simply calling pinMode(15,WAKEUP_PULLUP);deepSleep(100000000);
The chip will sleep...
Then by externally pulling 15 HIGH will restart the chip before the expiration time sleep arg?
ficeto
@ficeto
WAKEUP_PULLUP not in code yet
no
did not say that
Russ Mathis
@RussMathis
k...
ficeto
@ficeto
void setup() {
  pinMode(14, WAKEUP_PULLUP);
  Serial.begin(115200);
  Serial.println("Booted!");
}
if pin 14 is LOW at the time pinMode is called
wdt will reset and not continue to say "Booted!"
kind of a latest "staging" version
Russ Mathis
@RussMathis
cool, I'll try it out now...
Russ Mathis
@RussMathis
downloaded and installed via arduino ide 1.6.4 from board manager
from eclipse set Private hardware path to:..packages\esp8266\hardware\esp8266\1.6.4-755-gdb0b8be
and recompiled... Worked for simple sleep test sketch
fmgomes
@fmgomes
Is there any example for Spiffs? I would like to store some http / template files to be served by the webserver
Russ Mathis
@RussMathis
me too... :)
Ivan Grokhotkov
@igrr
Not yet
Check out the SD example though
Russ Mathis
@RussMathis
Did any new examples get added for anything? :fire:
Cool, 6 examples under SD! Fantastic!!!!!
Ivan Grokhotkov
@igrr
if you have a microSD to SD adapter, you can solder to a few wires and have fun with SD
also be sure to check out the SD example under the ESP8266WebServer library
it shows how you can serve files from the SD card with the web server
Russ Mathis
@RussMathis
Have a few SD, can solder directly to the pins on the card! LOL!
Ivan Grokhotkov
@igrr
meh
not very good idea
you won't be able to put files on the SD with your computer then
Russ Mathis
@RussMathis
Too late... done that already. works good!