Site Tools
Sidebar
User's Manual
t2:power_source
power_source
power_source - Get the power source
Description
uint8 power_source();
Retrieve the source of power for the Titan Two device.
Return Value
Returns a number that represents the power source as the following table.
Return Value | Power Source |
---|---|
0 | OUTPUT Port |
1 | PROG Port |
2 | DC Power Jack |
Examples
Example #1 power_source() example
const char *ps_text[] = { "Power Source: OUTPUT Port", "Power Source: PROG Port", "Power Source: DC Power Jack" }; init { printf(ps_text[power_source()]); }
t2/power_source.txt · Last modified: 2018/05/04 12:48 by J2Kbr