Arduino library command for getting signal values of inputs?
-
- Posts: 1
- Joined: Tue Jul 20, 2021 8:24 am
Arduino library command for getting signal values of inputs?
Is there a Arduino serial command to get digital and analog input values from a MCP controller? Under the advanced packet serial section of the user manual there is "147 - Get Signal Values" but I do not see a command for it in the Arduino library.
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: Arduino library command for getting signal values of inputs?
The Get Signal Values command is the only way to get the state of input signals via packet serial. That command is not recommended for that purpose though because it dumps the status information for all pins at one time(eg it takes a relatively long time).
Writing a custom MCL program that does this and anything else you wanted would be the best option.
Writing a custom MCL program that does this and anything else you wanted would be the best option.