#include <hardware/gpio.h>
#include <pico.h>
Go to the source code of this file.
◆ DEFAULT_SCL_PIN
#define DEFAULT_SCL_PIN PICO_DEFAULT_I2C_SCL_PIN |
◆ DEFAULT_SDA_PIN
#define DEFAULT_SDA_PIN PICO_DEFAULT_I2C_SDA_PIN |
◆ SCL_HIGH
#define SCL_HIGH |
( |
| ) |
gpio_set_dir(twi_scl, false) |
◆ SCL_LOW
#define SCL_LOW |
( |
| ) |
gpio_set_dir(twi_scl, true) |
◆ SCL_READ
#define SCL_READ |
( |
| ) |
gpio_get(twi_scl) |
◆ SDA_HIGH
#define SDA_HIGH |
( |
| ) |
gpio_set_dir(twi_sda, false) |
◆ SDA_LOW
#define SDA_LOW |
( |
| ) |
gpio_set_dir(twi_sda, true) |
◆ SDA_READ
#define SDA_READ |
( |
| ) |
gpio_get(twi_sda) |