![wire library energia wire library energia](https://www.bannerengineering.com/us/en/products/lighting-and-indicators/illuminated-e-stop-buttons.img.png)
![wire library energia wire library energia](https://i.pinimg.com/736x/79/5a/fc/795afc922a3dab31819be9fd51de234a.jpg)
when reading the last byte i do not get good values but at least the loop does not freeze. The timing must be precise and also 3 bytes are requested and only 2 read. It is intended to be compatible with the RF Monolithics (Virtual Wire protocol, but this has not been tested. I did not managed yet to get the C stuff running on my linux machine, probably I2C is broken in the energia lib?Įdit: it seems that there is a bug in the library too.
#Wire library energia code#
There is a boosterpack containing the SHT21 as well, but i did not found any sample code for that. I basically used this library: and modified the example script like this: #include then i tried both I2C interfaces by setting tModule(0) or tModule(1) but in all cases the result is that either everything freezes in the Wire.endTransmission() function or i receive only bytes filled with 0. I used different setups with external Pullup, used the internal pullup and also no pullup. I want to communicate with a SHT21 Sensor from a EK-TM4C1294XL Board.īut it seems that I2C communication is quite difficult with energia. Is smells of a memory issue probably in the Wire or TWI library, I look at the wire and could not find anything obvious.