Fix ESP32 TOGGLE() with I2S expander (#13743)

This commit is contained in:
Kajetan Rzepecki
2019-04-18 20:15:35 +02:00
committed by Scott Lahteine
parent e6f6ed76c8
commit d83a7924e6
3 changed files with 7 additions and 1 deletions

View File

@@ -315,6 +315,10 @@ void i2s_write(uint8_t pin, uint8_t val) {
SET_BIT_TO(i2s_port_data, pin, val);
}
uint8_t i2s_state(uint8_t pin) {
return TEST(i2s_port_data, pin);
}
void i2s_push_sample() {
dma.current[dma.rw_pos++] = i2s_port_data;
}