- Mon Jun 22, 2015 4:20 am
#21193
Coming up shortly (already commited): Support for driving GPIO's.
I noticed that the esp8266 is used by some people to program Arduino. For that they need to cycle the Arduino's reset line. So I've come up with GPIO support. I works like this: First you set up a GPIO (currently GPIO2 only, but others will follow, for those that have more GPIO's available), to be disabled, input, output, "bounce" or pwm. Bounce means that when it's triggered, it "bounces" back automatically after some configured time in milliseconds. Especially made for triggering reset inputs etc. One can also choose the bounce GPIO to be auto-repeat and create a flashing light.
Configuration of the GPIO's is written to non-volatile storage, so after reboot the GPIO's are in the right mode automatically.
Next on the list is PWM support on GPIO's and after that, modulating PWM. That means that the duty cycle is varied over time, i.e. a "soft" flashing light, or a light going on or off "softly", if it's not re-triggered. This is stuff I already have in my atmega328p's, so not that difficult te implement
. I also have counter support in mind, shouldn't be that hard to make as well.
When the GPIO stuff (input/output/bounce) is ready (almost...) I will upload new precompiled images.