mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-08 09:45:11 -04:00
Quick and dirty temperature logger, debug view of temp vs. time.
This commit is contained in:
parent
750506b33e
commit
86edf01def
8 changed files with 206 additions and 3 deletions
|
@ -82,6 +82,36 @@ private:
|
|||
};
|
||||
};
|
||||
|
||||
class TemperatureWidget : public Widget {
|
||||
public:
|
||||
explicit constexpr TemperatureWidget(
|
||||
Rect parent_rect
|
||||
) : Widget { parent_rect }
|
||||
{
|
||||
}
|
||||
|
||||
void paint(Painter& painter) override;
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
class TemperatureView : public View {
|
||||
public:
|
||||
explicit TemperatureView(NavigationView& nav);
|
||||
|
||||
void focus() override;
|
||||
|
||||
private:
|
||||
TemperatureWidget temperature_widget {
|
||||
{ 0, 16, 240, 192 },
|
||||
};
|
||||
|
||||
Button button_done {
|
||||
{ 72, 256, 96, 24 },
|
||||
"Done"
|
||||
};
|
||||
};
|
||||
|
||||
struct RegistersWidgetConfig {
|
||||
size_t registers_count;
|
||||
size_t legend_length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue