How to read mainbord status on GPIO
-
Hello everyone,
I want to know if it's possible to read the mainbord status on GPIO pin ?I want to manage a RGB LED whith this variable.
If somebody have already try to do it, i'm interrested.
Thanks for your precious help
-
You need to monitor the object model and look at state.status
The possible values are here
https://github.com/Duet3D/RepRapFirmware/wiki/Object-Model-Documentation#statestatusThen you can use daemon.g to change the led.
Something like this will update every 2 secondswhile true if state.status = "idle" ; do code to set LED white elif state.status = "processing" ; do code to set LED green elif state.status = "halted" ; do code to make led red else ; do code to make led yellow for any other state G4 S2
-
@OwenD
Thanks for you quick reply. I will try.