Make Wire inherit Stream
fixes: https://github.com/espressif/arduino-esp32/issues/57
This commit is contained in:
parent
c0266615d5
commit
c82699a83d
@ -27,10 +27,11 @@
|
|||||||
#include <esp32-hal.h>
|
#include <esp32-hal.h>
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "freertos/queue.h"
|
#include "freertos/queue.h"
|
||||||
|
#include "Stream.h"
|
||||||
|
|
||||||
#define I2C_BUFFER_LENGTH 128
|
#define I2C_BUFFER_LENGTH 128
|
||||||
|
|
||||||
class TwoWire
|
class TwoWire: public Stream
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
uint8_t num;
|
uint8_t num;
|
||||||
|
Loading…
Reference in New Issue
Block a user