8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 874ca44 commit 5786e85Copy full SHA for 5786e85
libraries/I2S/src/I2S.h
@@ -55,7 +55,11 @@ class I2SClass : public Stream
55
// Read up to size samples from the I2S device. Non-blocking, will read
56
// from 0...size samples and return the count read. Be sure your app handles
57
// the partial read case (i.e. yield()ing and trying to read more).
58
+ using Stream::read;
59
int read(void* buffer, size_t size);
60
+ int read(uint8_t* buffer, size_t size) override {
61
+ return read(static_cast<void*>(buffer), size);
62
+ }
63
64
// Write a single sample to the I2S device. Blocking until write succeeds
65
size_t write(int32_t);
0 commit comments