add reserve, voltage and inOrOut
This commit is contained in:
@@ -74,7 +74,12 @@ int voltage(char* gpioPort, char* volt)
|
||||
int main()
|
||||
{
|
||||
reserve(PIN06);
|
||||
inOrOut(PIN06, OUT);
|
||||
reserve(PIN01);
|
||||
reserve(PIN11);
|
||||
voltage(PIN06, V0);
|
||||
voltage(PIN01, V33);
|
||||
inOrOut(PIN01, OUT);
|
||||
inOrOut(PIN11, IN);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user