The microcontroller must function as the master device, multiple masters are not supported. Enable RX (will occur in background using irqs) mySerial. A timeout feature is included to prevent lockups by faulty or missing hardware. Note you can define unlimited software serial ports, but only 1 can be set to receive at a time. Multiple objects (for multiple software I2C buses) and clock-stretching by slave devices are supported. Alternatively it is possible to pass references to functions which read and control the SDA and SCL lines, thereby allowing direct port manipulation to be used if preferred. The pins to be used for the serial data (SDA) and serial clock (SCL) control lines can be defined at run-time. It utilises the pinMode(), digitalWrite() and digitalRead() functions. SoftWire is a software I2C implementation for Arduino and other Wiring-type environments. Author Steve Marple Website Category Communication License LGPL 2.1 Library Type Contributed Architectures Any
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |