Koduino
|
OUTPUT
, OUTPUT_OPEN_DRAIN
, INPUT
, INPUT_PULLUP
, or INPUT_PULLDOWN
HIGH
, LOW
or TOGGLE
on output pinsThis file is part of koduino https://github.com/avikde/koduino
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, see http://www.gnu.org/licenses/.
Functions | |
void | digitalWrite (uint8_t pin, LogicValue val) |
Set a digital pin to a given logic level. More... | |
static uint8_t | digitalRead (uint8_t pin) __attribute__((always_inline |
Read a digital pin. More... | |
|
inlinestatic |
Read a digital pin.
Pin must have been configured as input by pinMode()
pin | Pin to read |
void digitalWrite | ( | uint8_t | name, |
LogicValue | val | ||
) |
Set a digital pin to a given logic level.
[long description]
pin | Pin to set |
val | Can be LOW , HIGH , or TOGGLE (new from Arduino) |
This file is part of koduino https://github.com/avikde/koduino
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, see http://www.gnu.org/licenses/.