add function registerInput
This commit is contained in:
@@ -40,6 +40,12 @@ void registerOutput(char *pin)
|
||||
setDirection(pin, "out", 3);
|
||||
}
|
||||
|
||||
void registerInput(char *pin)
|
||||
{
|
||||
registerPin(pin);
|
||||
setDirection(pin, "in", 3);
|
||||
}
|
||||
|
||||
void writeOutput(char *pin, int state)
|
||||
{
|
||||
char path[50];
|
||||
|
||||
Reference in New Issue
Block a user