23 lines
712 B
C
23 lines
712 B
C
/* MX-008 "Onyx Sovereign" -02 "Kingmaker"
|
|
* ============================================================================
|
|
* === IIC interface configuration
|
|
* ============================================================================
|
|
*
|
|
* Alexis Maya-Isabelle Shuping
|
|
* 29th March 2021
|
|
* University of Florida
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <driver/i2c.h>
|
|
|
|
#define T_IIC_INIT ("IIC INIT")
|
|
#define T_IIC_LCD ("IICL")
|
|
|
|
#define IIC_NUM_LCD (I2C_NUM_0)
|
|
|
|
void iicInit(i2c_port_t port, int sclNum, int sdaNum, bool pullUps, int clkRate);
|
|
|
|
void iicCommand(i2c_port_t port, uint_fast8_t targetAddress, uint_fast8_t toSend);
|
|
void iicData(i2c_port_t port, uint_fast8_t targetAddress, uint_fast8_t toSend);
|