Patch i2c, info menu
This commit is contained in:
@ -27,6 +27,10 @@
|
||||
|
||||
#define HAL_ADC_RANGE _BV(HAL_ADC_RESOLUTION)
|
||||
|
||||
#ifndef I2C_ADDRESS
|
||||
#define I2C_ADDRESS(A) (A)
|
||||
#endif
|
||||
|
||||
inline void watchdog_refresh() {
|
||||
TERN_(USE_WATCHDOG, HAL_watchdog_refresh());
|
||||
}
|
||||
|
@ -48,6 +48,9 @@ extern "C" volatile uint32_t _millis;
|
||||
#include <pinmapping.h>
|
||||
#include <CDCSerial.h>
|
||||
|
||||
// i2c uses 8-bit shifted address
|
||||
#define I2C_ADDRESS(A) ((A) << 1)
|
||||
|
||||
//
|
||||
// Default graphical display delays
|
||||
//
|
||||
|
Reference in New Issue
Block a user