Improving the canonical Arduino HX711 library for ESP8266, ESP32 and beyond

In the Facebook group to Side Project: HaniMandl, halbautomatischer Honig-Abfüllbehälter Marc is using the adaption of the HX711.cpp form lemio to get the lib running with the ESP32: HX711/HX711.cpp at master · lemio/HX711 · GitHub

Other people recommaned to use the normal bogde lib https://github.com/bogde/HX711/blob/master/HX711.cpp and remove this section in HX711.cpp

#ifndef ESP8266
	#if ARDUINO_VERSION <= 106 
    // "yield" is not implemented as noop in older Arduino Core releases, so let's define it.
    // See also: https://stackoverflow.com/questions/34497758/what-is-the-secret-of-the-arduino-yieldfunction/34498165#34498165
   	void yield(void) {};
	#endif
#endif
1 Like