Add some possible fixes (pulseCS and explicit type casts)

This commit is contained in:
Theodor Teslia
2023-04-27 11:03:49 +02:00
parent 265245e6ef
commit f3097b7f25
3 changed files with 31 additions and 8 deletions

View File

@@ -31,6 +31,13 @@ namespace sta {
}
private:
// Helper method to keep code clean
void pulseCS(uint32_t ms=1) {
this->device_->endTransmission();
sta::delayMs(ms);
this->device_->beginTransmission();
}
// STA internal object for SPi abstraction
SpiDevice* device_;
OsrLevel osr_;