It is maintained by ST, but non-generic behavior doesn’t get added to their Core/ and must be supplied by libraries. I’ll open a github issue for adding generic read/write support to the existing I2C module.Īs for Arduino vs libDaisy: I’d say for simple programs there won’t be much of a difference, but the Arduino stuff is set up to be generic and work with a number of STM32 processors. The per_*.* files are meant to be a wrapper around the HAL, and eventually replace the HAL entirely.Ĭurrently the led driver device (PCA9685) still uses the HAL functions, but the goal is to replace the need to use HAL anywhere but the per_ and sys_ files so that we can eventually strip it out entirely. Note: this is definitely correct address, and i2c1 is wired up correctly.ītw: (non-arduino) is the idea to extend per_i2c with read and write functions? or should we get used to using stm32 HAL_* functions?Īdding generic I2C read/write functions is definitely planned. Im getting error code 2 from endTransmission, I guess I can look to see what error actually is… perhaps there is some kind of bus speed error? It then checks to see if error=0, if so it ‘sees’ the device at this address… If we look at the example Arduino scanner code we see Wire.beginTransmission(address) Its a sensor, so Im actually trying to read values…īut basically, begintransmission always fails… Yeah, I tried before with just Wire.begin() and I2C1 and it didnt work, hence why I tried setting pins directly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |