esp8266_ping icon indicating copy to clipboard operation
esp8266_ping copied to clipboard

Make the code build with more recent ESP SDK versions.

Open catsup opened this issue 10 years ago • 1 comments

Hi,

I was about to write my own driver for an HC-SR04 sensor module when I came across yours :+1: )

My sensor is connected through level converters to GPIO4/5 on an ESP-07 module.

Seems to work just fine, distance is off (too short) by about 10mm when measured from the front of the sensor.

I've made a couple minor tweaks so the code builds on the more recent ESP SDKs (0.9.5 - 1.3.0)

Regards, Marc

marc@o ~/ESPRESSIF/github/esp8266_ping $ for SDK in /opt/Espressif/esp_iot_sdk_v*; do echo $SDK; make clean; export SDK_BASE=$SDK; make && echo OK USING $SDK; done | grep OK OK USING /opt/Espressif/esp_iot_sdk_v0.9.5 OK USING /opt/Espressif/esp_iot_sdk_v1.1.0 OK USING /opt/Espressif/esp_iot_sdk_v1.1.1 OK USING /opt/Espressif/esp_iot_sdk_v1.2.0 OK USING /opt/Espressif/esp_iot_sdk_v1.3.0

catsup avatar Sep 12 '15 14:09 catsup

I've updated the easygpio.c file in the https://github.com/eadf/esp8266_easygpio repository. This repository just contains a snapshot (git tree) of those files. Sadly I could not find a way to propagate your pull request to that project.

I just updated the easygpio snapshot.

eadf avatar Feb 28 '16 20:02 eadf