Its TwoWire class has nondegenerate setSDA and setSCL methods, and in the Teensy 3.5 environment it defines TwoWire instances called Wire, Wire1, Wire2, and Wire3. WireKinetis.h/Wirekinetis.cpp is newer.Then my code compiles, but because the setSDA & setSCL calls have no effect, the AdaFruit code cannot talk to any I2C device that is not connected to the default pins (on Teensy 3.5, D18 & D19). adds calls to setSDA and setSCL to the AdaFruit code to control the BMP085.It defines a TwoWire instance called Wire. Its TwoWire class has setSDA and setSCL methods, but the implementations of those methods are empty. The AdaFruit code to control the BMP085 makes explicit use of a Wire object, and it expects that object to have methods write(unsigned char), endTransmission(unsigned char), and requestFrom(unsigned char, unsigned char, unsigned char) (the "old methods"). There are at least 3 Teensy library packages providing I2C services. This situation is messier than I had thought.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |