BCM class.
Definition at line 32 of file BCM.h.
#include <BCM.h>
◆ digitalPinToInterrupt()
uint8_t BCMClass::digitalPinToInterrupt |
( |
uint8_t |
gpio | ) |
|
|
inline |
Returns the same GPIO, no conversion is required.
- Parameters
-
- Returns
- The GPIO pin number.
Definition at line 85 of file BCM.h.
◆ digitalRead()
uint8_t BCMClass::digitalRead |
( |
uint8_t |
gpio | ) |
|
Reads the value from a specified pin.
- Parameters
-
- Returns
- HIGH or LOW.
◆ digitalWrite()
void BCMClass::digitalWrite |
( |
uint8_t |
gpio, |
|
|
uint8_t |
value |
|
) |
| |
Write a high or a low value for the given pin.
- Parameters
-
gpio | The GPIO pin number. |
value | HIGH or LOW. |
◆ init()
uint8_t BCMClass::init |
( |
| ) |
|
Initializes BCM.
- Returns
- 1 if successful, else exits the program.
◆ isInitialized()
uint8_t BCMClass::isInitialized |
( |
| ) |
|
Checks if SPI was initialized.
- Returns
- 1 if initialized, else 0.
◆ pinMode()
void BCMClass::pinMode |
( |
uint8_t |
gpio, |
|
|
uint8_t |
mode |
|
) |
| |
Configures the specified pin to behave either as an input or an output.
- Parameters
-
gpio | The GPIO pin number. |
mode | INPUT or OUTPUT. |
The documentation for this class was generated from the following file:
- hal/architecture/Linux/drivers/BCM/BCM.h