-
-
Notifications
You must be signed in to change notification settings - Fork 478
[Question]use of readData() on lua interpreter #1092
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
readData() read any string received by lua interpreter, from ESP3D if you send any [ESPXXX] command but also any string from serial or usb here a sample script that echo any message received by lua interpreter
I know documentation https://esp3d.io/ESP3D/Version_3.X/documentation/lua/ is very light but no one seems used this feature until now because I got no feedback on this feature, so feel free to propose, submit better documentation, of course I will help by answering any question or give clarifications if necessary |
@kleffa did this answered your question ? |
Yes, let me try some scripts and share as example
El lun, 5 de may de 2025, 21:20, Luc ***@***.***> escribió:
… *luc-github* left a comment (luc-github/ESP3D#1092)
<#1092 (comment)>
@kleffa <https://github.com/kleffa> did this answered your question ?
—
Reply to this email directly, view it on GitHub
<#1092 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGMYMBJZ6XNI4EGGQYE56ZD25AE4LAVCNFSM6AAAAAB4NYJAO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNJSHEYTOMJQGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
local pin = readData([ESP201] P=4)
if pin == 1 then
print("[ESP201] P=4 V=0 ")
else
print("[ESP201] P=4 V=1 ")
end
I'm writing a couple of scripts like this one (just change state of flash on esp32cam). I know this can be just a digitalRead, but its about using readData() , this doesnt work, I missed something?
can readData used to read serial, like M27 data?
any help please to clarify it
The text was updated successfully, but these errors were encountered: