Snippet Tag: hp203b arduino

arduino code hp203b

#include #include HP203B hp; double referencePressure; void setup(void) { Serial.begin(9600); // The address can be changed making the option of connecting multiple devices hp.getAddr_HP203B(HP203B_DEFAULT_ADDRESS); // 0x76 // hp.getAddr_HP203B(HP203B_ADDRESS_UPDATED); // 0x77 // The OSR command value to intiate the Pressure, Altitude and Temperature Conversions // can be changed via the following functions hp.setOSR(OSR_4096); // OSR=4096 // hp.setOSR(OSR_2048); // OSR=2048 // hp.setOSR(OSR_1024); // OSR=1024 // hp.setOSR(OSR_512); // OSR=512 // hp.setOSR(OSR_256); // OSR=256 // hp.setOSR(OSR_128); // OSR=128 hp.begin(); delay(500); } void loop(void) { byte error; int8_t address; address = hp.hp_i2cAddress; // The i2c_scanner uses the return value of // the Write.endTransmisstion to see

Read More »