Library for TI's DRV2667
Diff: DRV2667.cpp
- Revision:
- 3:870dc06a0e8a
- Parent:
- 2:101901b3f05e
--- a/DRV2667.cpp Thu Feb 08 07:38:17 2018 +0000 +++ b/DRV2667.cpp Mon Feb 19 00:43:53 2018 +0000 @@ -51,6 +51,11 @@ i2cWriteByte(0x02, i2cReadByte(0x02) & ~1); } +bool DRV2667::isPlaying() +{ + return i2cReadByte(0x02) & 1; +} + void DRV2667::setWaveform(char* id, char setNum) { for(int i = 0; i < setNum && i < 8; i++)