That is why software is a patented object and not a copyrighted object.
Devices have inputs and outputs. You as an engineer should know this better than I.
Computer software processes inputs and delivers an output.
It is not a literary work. It replaces a lot of patented analog machine controls though.