-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new Layoutoption for "AlternativeFrame"
- Loading branch information
Showing
5 changed files
with
57 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#pragma once | ||
|
||
#include "DE10x11.alternative.hpp" | ||
|
||
/* | ||
* Layout Front | ||
* | ||
* E S K I S T L F Ü N F | ||
* Z E H N Z W A N Z I G | ||
* D R E I V I E R T E L | ||
* N A C H A P P Y V O R | ||
* H A L B I R T H D A Y | ||
* D R Z W Ö L F Ü N F X | ||
* Z E H N E U N D R E I | ||
* Z W E I N S I E B E N | ||
* E L F V I E R A C H T | ||
* S E C H S I U H R Y E | ||
* | ||
*/ | ||
|
||
#define USE_DREIVIERTEL | ||
|
||
class De10x11AlternativeFrame_t : public De10x11Alternative_t { | ||
public: | ||
virtual const uint16_t NUM_PIXELS() override { return 169; }; | ||
|
||
//------------------------------------------------------------------------------ | ||
|
||
virtual inline const uint16_t NUM_RMATRIX() { return 48; } | ||
|
||
//------------------------------------------------------------------------------ | ||
|
||
virtual const bool hasSecondsFrame() override { return true; } | ||
|
||
//------------------------------------------------------------------------------ | ||
|
||
virtual const uint16_t getRMatrix(uint16_t index) override { | ||
return 114 + index; | ||
}; | ||
|
||
virtual const void getMinArr(uint16_t *returnArr, uint8_t col) override { | ||
for (uint8_t i = 0; i < 4; i++) { | ||
returnArr[i] = 114 - (4 - i); | ||
} | ||
}; | ||
}; | ||
|
||
De10x11AlternativeFrame_t _de10x11AlternativeFrame; |
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
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