Added the G29 base mount for the display and the tacho BAR
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef _UI_BAR
|
||||
#define _UI_BAR
|
||||
|
||||
#include "UIComponent.h"
|
||||
|
||||
struct UIBar : UIElement {
|
||||
// This might be the only when where its more efficient to have the data
|
||||
// as integers instead
|
||||
uint32_t value = 0; // current tach value
|
||||
uint8_t range = 0; // define the tach range, ie: 8 for 8000rpm
|
||||
|
||||
UIBar(Arduino_GFX *d, UIDimensions dims, UIDecorations *decor, char *title);
|
||||
|
||||
void Update(char *val);
|
||||
void DrawBar(uint32_t *oldValue, uint32_t *newValue);
|
||||
void renderBlank();
|
||||
void Box();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user