. \ ESP3D-2.1 \ ESP3D-2.1 \ esp3d \ esp3d.inoand make "Export binary file", and i have error
"pgmspace.h: No such file or directory"
echo [ESP201]P12 V0
switch.psu.enable true switch.psu.input_on_command M80 switch.psu.input_off_command M81 switch.psu.output_on_command echo_[ESP201]P12_V1 switch.psu.output_off_command echo_[ESP201]P12_V0
I think I have still not been clear. The pin I want to control from Smoothieware is the pin 12 of the ESP. And I wanted to control it from the standard M80/M81 gcodes.
Anyway, I got it working with some help from Wolfmanjm (smoothieware). Just added 2 lines in the communication module of Smoothieware, in the GcodeDispatch.cpp file, in the "Mcodes" management section: (if it can be useful to others):
case 80: THEKERNEL->streams->printf("[ESP201]P12 V1\r\n"); break;
case 81: THEKERNEL->streams->printf("[ESP201]P12 V0\r\n"); break;