Added changes for Raspi I2C

This commit is contained in:
Dario
2023-08-14 21:04:23 +01:00
parent 266cc46a09
commit 017c07a077
5 changed files with 33 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ namespace sta
* @param intf %I2C hardware interface
* @param csPin The peripheral's address.
*/
I2CDevice(I2C * intf, int address, bool master=false, bool blocking=true);
I2CDevice(I2C * intf, int address, bool master=true, bool blocking=true);
protected:
void select() override;

View File

@@ -78,7 +78,7 @@ namespace sta
bool isAquired();
private:
Mutex * mutex_;
bool aquired_ = false;
bool acquired_ = false;
};
} // namespace sta