-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from viordash/Render
Render
- Loading branch information
Showing
71 changed files
with
541 additions
and
602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
#pragma once | ||
|
||
#include "Display/Common.h" | ||
#include "LogicProgram/MapIO.h" | ||
#include <stdint.h> | ||
#include <unistd.h> | ||
|
||
class MapIOIndicator { | ||
protected: | ||
const char *name; | ||
uint8_t progress; | ||
uint8_t separator_width; | ||
|
||
static const uint8_t text_width = 6; | ||
static const uint8_t text_height = 10; | ||
static const uint8_t name_size = 2; | ||
static const uint8_t margin = 1; | ||
|
||
public: | ||
explicit MapIOIndicator(const char *name, uint8_t progress, uint8_t separator_width); | ||
explicit MapIOIndicator(const MapIO io_adr); | ||
virtual ~MapIOIndicator(); | ||
|
||
bool Render(uint8_t *fb, Point *start_point); | ||
bool Render(uint8_t *fb, Point *start_point, uint8_t progress); | ||
static uint8_t GetHeight(); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.