File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 5
5
# define DRIVER_DEFAULT_VOLUME 70
6
6
#endif
7
7
8
-
9
8
// To increase the max volume e.g. for ai_thinker (ES8388) 2957 or A202 -> set
10
9
// to 1 or 2 0 AUX volume is LINE level 1 you can control the AUX volume with
11
10
// setVolume()
20
19
# define ES8388_DEFAULT_INPUT_GAIN 25
21
20
#endif
22
21
23
-
24
22
// For AI Thinker Audiokit we mute the power amplifier if the line is defined;
25
23
// set to -1 to deactivate this functionality
26
- #ifndef ES8388_PA_LINE
24
+ #ifndef ES8388_PA_LINE
27
25
# define ES8388_PA_LINE 1
28
26
#endif
29
27
28
+ // If set to true, call Wire.close() on end: this might cause that the
29
+ // functionality can not be restarted
30
+ #ifndef FORCE_WIRE_CLOSE
31
+ # define FORCE_WIRE_CLOSE false
32
+ #endif
Original file line number Diff line number Diff line change @@ -200,8 +200,8 @@ struct PinsI2C {
200
200
return true ;
201
201
}
202
202
void end () {
203
- #ifndef ESP8266
204
- p_wire->end ();
203
+ #if !defined( ESP8266) && FORCE_WIRE_CLOSE
204
+ p_wire->end ();
205
205
#endif
206
206
}
207
207
};
You can’t perform that action at this time.
0 commit comments