boardSetAIResolution (Function) |
Top Previous Next |
The analog input sampling logic can work at multiple resolutions to fit different needs. The default resolution is 10 bit. When increasing the resolution from 10 to 12 bit, the range of the analog input values change from 0..1023 to 0..4095.
Input: res : int (10,12) Selects the resolution for the analog input sampling. Returns: INT
Declaration: FUNCTION boardSetAIResolution : INT;
Example: INCLUDE rtcu.inc |