ESP8266 Espressif SDK programming in C++

Intro Are you a C++ crazy fan? I'm! don't be shy. I can't imagine life without programming in C++, so now that I'm getting into IoT I wanted to explore the feasibility of using C++, after all programming ESP8266 in the Arduino IDE you can, why can't we on the official SDK? Out of the… Seguir leyendo ESP8266 Espressif SDK programming in C++

Non-blocking ADC converter class

The built-in analogRead() function blocks until the conversion is ready; for most scenarios this behavior is ok. However, for a high-responsive systems such behavior would be unacceptable. Another reason I wrote this small non-blocking class is because I bought a lcd-keypad shield, and then I built some improved clones: The keypad is implemented through an… Seguir leyendo Non-blocking ADC converter class

System-tick for the Arduino platform

A real embedded system needs a system-tick, and Arduino doesn't have one ... No, the yield() function is not a real system-tick, so I've swimmed a little bit into the code so that I get a real one. This is my progress. In the file hooks.c we need to add a place holder for our… Seguir leyendo System-tick for the Arduino platform

Building a solution from the command line

The Arduino's IDE is just awful. Period. To write sketches is awful as well. Scketches make me sick. Hopefully we can build our solutions from the command line, directly from the main() function, even using our favorite code editor, VIM for me. A more-in-depth tutorial on this topic can be found here. Installing Arduino We… Seguir leyendo Building a solution from the command line