First of all, let me introduce :
I’m quite new on Pimoroni forums, currently ending my IT studies and use Python for my graduation work with several sensors on a Raspberry Pi 4 2GB which will send everything in JSON format to a server which will store and create graphs from it.
For my graduation work, I wanted to use the BME680 from Pimoroni along with other sensors.
No problem with the others but with the BME680, I’m actually facing a little problem.
Whenever I launch my code, it states for an attribute error (module ‘bme680’ has no attribute ‘BME680’) even though it’s the exact same part of code from the given example code.
I really don’t understand why the example code works fine but mine is stuck at:
sensor = bme680.BME680(bme680.I2C_ADDR_PRIMARY)
I also tried by not stating the address like the “Getting Started with BME680 Breakout” indicates but like I was thinking about the problem, it doesn’t change anything.
sensor = bme680.BME680()
Maybe someone can help me solve this? :)