add firmware
This commit is contained in:
parent
f165ccdc95
commit
580bc8716c
21 changed files with 6148 additions and 0 deletions
23
firmware/main/include/iic.h
Normal file
23
firmware/main/include/iic.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/* 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue