Added the G29 base mount for the display and the tacho BAR

This commit is contained in:
2025-05-20 23:15:26 +01:00
parent a45f1b29cf
commit 106fdbb4dd
8 changed files with 153 additions and 4 deletions
+20
View File
@@ -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