Ads1115 library for STM8 sduino

Hi,
I need to connect an ADS1115 to a STM8 mcu which is running sduino. i tried to talk with the ADS1115 via I2C directly but its not working at all, so I'm trying to find a library which will work however I'm unable to find any.. do you guys have any suggestions on what i should do?

If you can't find a library for your hardware, you can always write your own. Look at the datasheet of the device and write your program to work with it. Or search for a library for similar hardware and buy such hardware.

Because ADS1115 works via I2c, you don't need reinvent the wheel, but you can get any arduino ADS1115 library and only port it i2c interface to the stm8 mcu

Yes indeed, I’d like to do that however the key differences are that the stm8 don’t use c++ but c and has a different library for i2c not wire. I’m not sure how this will be converted. And I’m not sure how to write library’s to begin with since I only started coding not long ago and am much more comfortable with hardware. Just to confirm would it be just simple as copy pasting the library and then changing the syntax and commands for i2c?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.