File tree Expand file tree Collapse file tree 5 files changed +13
-4
lines changed Expand file tree Collapse file tree 5 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
#pragma once
2
-
2
+ #ifdef ARDUINO
3
+ # include "Arduino.h" // for delay
4
+ #endif
3
5
4
6
typedef enum {
5
7
_DAC_OUTPUT_MIN = -1 ,
@@ -122,4 +124,3 @@ typedef struct {
122
124
123
125
124
126
125
- void delay (uint32_t );
Original file line number Diff line number Diff line change 26
26
#include <math.h>
27
27
#include "es8156.h"
28
28
29
+ #ifndef BIT
29
30
#define BIT (nr ) (1 << (nr))
31
+ #endif
30
32
// 0x8 = 0x10>>1
31
33
#define ES8156_ADDR 0x8
32
34
#define BOARD_PA_GAIN (0) /* Power amplifier gain defined by board (dB) */
Original file line number Diff line number Diff line change 26
26
#include "es8311.h"
27
27
28
28
29
+ #ifndef BIT
29
30
#define BIT (nr ) (1 << (nr))
31
+ #endif
30
32
31
33
/* ES8311 address
32
34
* 0x32:CE=1;0x30:CE=0
Original file line number Diff line number Diff line change @@ -197,7 +197,11 @@ struct PinsI2C {
197
197
}
198
198
return true ;
199
199
}
200
- void end () { p_wire->end (); }
200
+ void end () {
201
+ #ifndef ESP8266
202
+ p_wire->end ();
203
+ #endif
204
+ }
201
205
};
202
206
203
207
/* *
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ void logStr(const char* msg);
28
28
#ifndef ARDUINO
29
29
void pinMode (int , int );
30
30
void digitalWrite (int , int );
31
- void delay (uint32_t );
31
+ void delay (unsigned long );
32
32
#endif
33
33
34
34
You can’t perform that action at this time.
0 commit comments