Fast LCD I2C driver 1.0
Fast driver for LCDs on I2C for Pi-Pico and Arduino
Functions
I2C Setup helper for Pi Pico

Detailed Description

In the Pi Pico environment, there is a helper function to set up the I2C bus and the pins required.

Functions

int LCD_I2C_Setup (i2c_inst_t *I2C, uint SDA_Pin, uint SCL_Pin, uint I2C_Clock) noexcept
 Helper function to set up the I2C bus on Pi Pico. More...
 

Function Documentation

◆ LCD_I2C_Setup()

int LCD_I2C_Setup ( i2c_inst_t *  I2C,
uint  SDA_Pin,
uint  SCL_Pin,
uint  I2C_Clock 
)
noexcept

Helper function to set up the I2C bus on Pi Pico.

Sets up the I2C bus given instance on the given pins with a specified clock rate. Defines the pins for the pico tools. It can be called from C or C++.

Parameters
I2Cis the I2C bus instance to use. Either i2c0 or i2c1.
SDA_Pinis the Pi Pico Pin for the I2C SDA (data) line.
SCL_Pinis the Pi Pico Pin for the I2C SCL (clock) line.
I2C_Clockis the I2C bus speed. Typically 100000 or 400000.
Returns
(int) The actual (theoretical) I2C speed from i2c_init