Hello,
I have old Raspberry Pi 2 v1.1 and FreeBSD 12.2 - RELEASE installed on it.
And I wanted to do some tests with a BME280 temperature sensor connected to I2C.
OS has detected sensor at address 0x76
I founded BME280 driver from Bosch:
I have compiled it successfully:
But at the time of executing it gives me an error:
I also understand that Python smbus module is not available in FreeBSD, right?
Has anyone had experience with the sensor BME280 or with I2C?
Best regards,
I have old Raspberry Pi 2 v1.1 and FreeBSD 12.2 - RELEASE installed on it.
Code:
# uname -a
12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC arm
And I wanted to do some tests with a BME280 temperature sensor connected to I2C.
OS has detected sensor at address 0x76
Code:
# i2c -sv
dev: /dev/iic0, addr: 0x0, r/w: r, offset: 0x00, width: 8, count: 1
Hardware may not support START/STOP scanning; trying less-reliable read method.
Scanning I2C devices on /dev/iic0: 76
I founded BME280 driver from Bosch:
GitHub - boschsensortec/BME280_SensorAPI: Bosch Sensortec BME280 sensor driver. To report issues, go to https://community.bosch-sensortec.com/t5/Bosch-Sensortec-Community/ct-p/bst_community
Bosch Sensortec BME280 sensor driver. To report issues, go to https://community.bosch-sensortec.com/t5/Bosch-Sensortec-Community/ct-p/bst_community - boschsensortec/BME280_SensorAPI
github.com
I have compiled it successfully:
Code:
# make bsd
cc bsd_userspace.c ../bme280.c -I ../ -o bme280
But at the time of executing it gives me an error:
Code:
# ./bme280 /dev/iic0
Failed to initialize the device (code -2).
I also understand that Python smbus module is not available in FreeBSD, right?
Has anyone had experience with the sensor BME280 or with I2C?
Best regards,