Hi,
still struggling how to wrap an Arduino Library. So many variations around ... means would be great (just) to import in B4R without wrapping.
One of the B4R HowTo Experiments working upon, is a mini weather station.
Temperature + Humidity
The DHT11 sensor is now working fine (with wrapped library rDHT11 based on DHT11 lib).
Airpressure
Next is the BMP180 sensor with library SFE_BMP180 to be wrapped as rBMP180.
... but (again) got stuck in how to wrap a base type SFE_BMP180 as defined in the SFE_BMP180.h.
The methods like begin() etc. seems straight forward to convert.
Any help appreciated.
still struggling how to wrap an Arduino Library. So many variations around ... means would be great (just) to import in B4R without wrapping.
One of the B4R HowTo Experiments working upon, is a mini weather station.
Temperature + Humidity
The DHT11 sensor is now working fine (with wrapped library rDHT11 based on DHT11 lib).
Airpressure
Next is the BMP180 sensor with library SFE_BMP180 to be wrapped as rBMP180.
... but (again) got stuck in how to wrap a base type SFE_BMP180 as defined in the SFE_BMP180.h.
The methods like begin() etc. seems straight forward to convert.
B4X:
class SFE_BMP180
{
public:
SFE_BMP180(); // base type
char begin();
// call pressure.begin() to initialize BMP180 before use
// returns 1 if success, 0 if failure (bad component or I2C bus shorted?)
Any help appreciated.