-
-
Notifications
You must be signed in to change notification settings - Fork 20
Using this Library w o Arduino
Phil Schatzmann edited this page Mar 8, 2025
·
7 revisions
You can use this library w/o Arduino e.g. by building with cmake.
In this case you need to provide the implementation for the following "C" methods:
- error_t i2c_bus_create(struct I2CConfig *pin);
- error_t i2c_bus_write_bytes(i2c_bus_handle_t bus, int addr, uint8_t *reg, int regLen, uint8_t *data, int datalen);
- error_t i2c_bus_read_bytes(i2c_bus_handle_t bus, int addr, uint8_t *reg, int reglen, uint8_t *outdata, int datalen);
- void i2c_bus_delete(i2c_bus_handle_t bus);
- void pinMode(int, int);
- void digitalWrite(int, int);
- void delay(uint32_t);
The following restrictions apply:
- Drivers that use SPI are not supported (AD1938)
- Touch Pins are not supported (LyraT)
- Pins using analogRead() are not supported (LyraTMini)