![]() ![]() Returns an incrementing value (char) each time it is called, this is for determining if a device is connected although the ID command could also be used if it is available for that device. The example is for a BV device with address 0圆2 This will be half the address specified in the data sheet as BV devices use the 8 bit address notation. The I2C address is specified at the constructor and should be the 7 bit address. The constructor will more than likely be the device class and this constructor will probably be only used for testing. It is unlikely that this class will be used on its own, it will be incorporated into the specific device class. The library inherits the Wire class and so this should be included in the sketch thus: This library can be used instead of sending the commands byte by byte through the Wire interface. To explain further, BV devices (most) share a common set of commands such as getting the device ID, testing to see if the device is on the bus etc. This library provides a common interface to the BV devices that mostly share a common set of commands, there are some exceptions but most of the time the methods in this library should work. Arduino I2C Library Arduino version 1.01 Download the zip file containing the library. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |