Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Add support for Nero Frame mode
  • Loading branch information
Vrumfondel authored Jan 13, 2025
1 parent 7f3e096 commit 9abc20f
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions include/Uhrtypes/DE10x11.nero.frame.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#pragma once

#include "DE10x11.nero.hpp"

/*
* Layout Front
* COL
* X 9 8 7 6 5 4 3 2 1 0
* ROW + - - - - - - - - - - -
* 0 | E S J I S T L F Ü N F
* 1 | Z E H N Z W A N Z I G
* 2 | D R E I V I E R T E L
* 3 | T F N A C H V O R J M
* 4 | H A L B X Z W Ö L F T
* 5 | Z W E I N S I E B E N
* 6 | L D R E I C I F Ü N F
* 7 | E L F N E U N V I E R
* 8 | U A C H T Z E H N S I
* 9 | C S E C H S T L U H R
*/

class De10x11NeroFrame_t : public De10x11Nero_t {
public:
virtual inline const uint8_t numPixelsFrameMatrix() { return 60; }

//------------------------------------------------------------------------------

virtual const bool hasSecondsFrame() override { return true; }

//------------------------------------------------------------------------------

virtual const uint16_t getFrameMatrixIndex(uint16_t index) override {
return 114 + index;
};

//------------------------------------------------------------------------------

virtual const void getMinuteArray(uint16_t *returnArr,
uint8_t col) override {
for (uint8_t i = 0; i < 4; i++) {
returnArr[i] = 110 + i;
}
};
};


De10x11NeroFrame_t _de10x11NeroFrame;

0 comments on commit 9abc20f

Please sign in to comment.