I'm trying to start an I2c communication with my Raspberry Pi using the pigpio library. It works fine for me with SPI, but I really do struggle with I2C.
When I use
if (gpioInitialize() < 0) printf("Coudn't initialize gpio");
i2c_handle = i2cOpen(0, 0b1100000, 0);
I always get back -74 as handle, which stands for PI_BAD_I2C_BUS.
Can somebody explain that to me? The bus number I give to the function is 0, that should be totaly valid. But I also tried some different numbers and I always get this same error...
raspi-config
?