Code

ESP8266 SDK 2.0

  Catching up with the latest ESP8266_NONOS_SDK_V2.0.0_16_07_19 – got into some issues. Seems like Espressif integrated some time compatibility functions into libmain.a which i already had into the tree, most likely due mbed tls port If you have millis(), micros(), mktime() and friends then you may need to comment them out. There is one exception – open soruce xtensa gcc provides time() which is required by ANSI C so it is in – platform must provide gettimeofday.

ESP8266 tcn75a driver

Hi, A simple i2c driver for the Microchip’s TCN75A thermometer – supports up to 8 thermometers. Driver works in one shot mode which is suitable for battery powered operations. The chip is with quite good specs for its price. Code at github esp_i2c_tcn75a . Usage: checkout user/user_main.c for example usage. Enjoy! 73  

ESP8266 – easy interrupts

While working on a current project i’ve faced an issue with code reuse. Espressif sdk allows only one interrupt handler for all GPIOs. That’s fine for monolithic code but since we like modular code a dispatcher comes handy. The little inconvenience i’ve had was like this. I wanted to use the drivers/key.c code but it does use the data argument , so i’ve had to modify it to use a global variable.

KiCad change fields visibility utility

$ open devlog I’ve back imported footprints for a .cmp file and I’ve misunderstood kicad’s question about the imported footprints visibility, so all went visible. And surprise, you can not edit visibility for all fields at once. So little utility was born – fixvis. Usage is pretty simple: ./fixvis file.sch fieldid newval where fieldid is: 0 - Reference 1 - Value 2 - Footprint 3 - Datasheet 4+ - custom newval: 0000 = visible, 0001 = hidden