![]() |
16x2 easyC LCD Library 1.0.0
This is a library for the 16x2 easyC LCD Module
|
#include <easyC.hpp>
Inherited by Sensor.
Public Member Functions | |
| EasyC () | |
| Main constructor for easyC version. | |
| void | begin () |
| Initializes sensors on native or easyC on default address. | |
| void | begin (uint8_t _address) |
| Initializes sensors on supplied i2c address. | |
| virtual void | initializeNative ()=0 |
| int | sendAddress (char regAddr) |
| Private function to send a single byte to sensor. | |
| int | readData (char a[], int n) |
| Private function to read n bytes over i2c. | |
| int | readRegister (char regAddr, char a[], size_t n) |
| Private function to send over i2c and then read n bytes. | |
| int | sendData (const uint8_t *a, int n) |
| Private function to write n bytes over i2c. | |
Public Attributes | |
| int | native = 0 |
| bool | beginDone = 0 |
| int | err |
| char | address |
| const char | defaultAddress = 0x30 |
|
inline |
Main constructor for easyC version.
|
inline |
Initializes sensors on native or easyC on default address.
|
inline |
Initializes sensors on supplied i2c address.
| uint8_t | _address Custom easyC sensor address |
|
pure virtual |
Implemented in Sensor.
|
inline |
Private function to read n bytes over i2c.
| char | a[] Array to read data to |
| int | n Number of bytes to read |
|
inline |
Private function to send over i2c and then read n bytes.
| char | regAddr Address of register to access data from |
| char | a Array to put data in |
| size_t | n Size of data to read |
|
inline |
Private function to send a single byte to sensor.
| char | regAddr Address of register to access later |
|
inline |
Private function to write n bytes over i2c.
| char | a[] Array to read data from |
| int | n Number of bytes to read |
| char EasyC::address |
| bool EasyC::beginDone = 0 |
| const char EasyC::defaultAddress = 0x30 |
| int EasyC::err |
| int EasyC::native = 0 |