7 changed files with 248 additions and 18 deletions
@ -1,4 +1,13 @@ |
|||||
#define EXT_I2C_SDA 21 |
#define EXT_I2C_SDA 21 |
||||
#define EXT_I2C_SCL 5 |
#define EXT_I2C_SCL 5 |
||||
|
|
||||
|
const int extCenterX = 64; |
||||
|
const int extCenterY = -70; |
||||
|
|
||||
void initExtDisplay(); |
void initExtDisplay(); |
||||
|
void pixelOnExtDisplay(int16_t x, int16_t y); |
||||
|
void lineCalcOnExtDisplay(int16_t x, int16_t y, int radius); |
||||
|
void overlayOnExtDisplay(); |
||||
|
float valueOnExtDisplay(float value); |
||||
|
void drawLineExtDisplay(float value); |
||||
|
void changeExt(float value); |
||||
@ -0,0 +1,3 @@ |
|||||
|
float mapFloat(float x, float in_min, float in_max, float out_min, float out_max) { |
||||
|
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; |
||||
|
} |
||||
Loading…
Reference in new issue