Hello, i had face some problem between the hx711 to light up my led wedget in my blynk app, here is my source code, hope someone show me the way, thanks.
The same way you did last time… but with the formatting characters at the beginning and the end of the code… as clearly explained in those links above
That is one way… but you must have a display widget set to V3 and a reading rate of your choice for that to work (NOT PUSH) and it will only work when the App is open.
Another way is a Button set to something like V2 and using the BLYNK_WRITE() function that will send the value to the Display Widget on V3 (this time set to PUSH) each time you press a button…
BLYNK_WRITE(V2) {
if (param.asInt == 1) { // get the state of the button
Blynk.virtualWrite(V3, scale.get_units(20));
}
}
thanks for the suggestion, but now my program need to use the hx711 to detect the load, if the load excess the limit like 2 kg will send data to V2 to activate the led widget.
That starts getting into “how to program”… not something I tend to start teaching new users about… besides, I am still teaching myself But the if() processes and comparison logic like you started out with seems to be one way to go.