|
NetBurner 3.5.6
PDF Version |
Topics | |
| Bit Bang I2C (GPIO) | |
| MOD5441x, NANO54415, SB800EX | |
| MODM7AE70, SBE70LC | |
| Wire Interface | |
| Implements the same TwoWire interface as other popular microcontrollers for easy cross-compatibility with third party libraries. | |
I2C API for NetBurner Platforms
The I2C peripheral interfaces can be controlled four ways:
The WireIntf class, which offers a Two Wire Interface API for older hardware
#include< Wire.h >
or
#include< i2c.h > (in the appropriate arch include subfolder)
or
#include< bb_i2c.h > (if no i2c.h in the appropriate arch)
BBI2C is specifically for platforms without native hardware I2C support. See other sub-modules for device-specific I2C details.
Provides access to the all the I2C peripherals on the processor. The I2C peripherals available will vary by platform. For example, Wire.read(); will execute a read operation on I2C module 0.