Skip to content

Kleine 8x8 wortuhr #483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 42 commits into from
Mar 29, 2025
Merged

Kleine 8x8 wortuhr #483

merged 42 commits into from
Mar 29, 2025

Conversation

BastiMu
Copy link
Contributor

@BastiMu BastiMu commented Nov 14, 2024

Die 8x8 Wortuhr ist Aufgrund der Größe auf viertel Stunden limitiert. Außerdem funktionieren durch die kleine Matrix nicht mehr alle Funktionen identisch. Daher waren einige Änderungen notwendig, die ich hier kurz aufliste:

  • Neue Logik zum Anzeigen der Viertel Stunden. Ich habe mich dafür entschlossen jeweils auf die jeweilige Zeit +/- 7 Minuten entsprechend Viertel, Halb oder Ganz anzuzeigen (z.B. x:23 - x:37 = Halb)
  • Neue Symbole die in 8x8 passen + entsprechnde Logik zur Auswahl der Symbole
  • Benutzung der kleinen Schrift bei den Sekunden für kleine Wortuhren (Die normale ist zu groß)
  • Bei Digitaluhr Stunden und Mintuen im 2 sekündigen Wechsel, da diese sonst ineinander fließen
  • Übergang "Bunt" um die Wörter in unterschiedlichen Farben ohne Übergang anzuzeigen.

Ich habe die Wortuhr 8x8 Viertelstunde genannt, da ich später festgestellt habe, das man im Deutschen durch FÜNFZEHN statt VIERTEL auch 5-Minuten-weise die Zeit anzeigen kann. Diese will ich noch erstellen, die viertelstunden Einstellungen benötige ich jedoch auch, da auch eine Spanische Version geplant ist. Außerdem plane ich eine große 13x13 Wortuhr mit allen Minuten (daher der has60MinuteLayout identifier).

@BastiMu
Copy link
Contributor Author

BastiMu commented Nov 14, 2024

Betrifft den issue #480, ich weiß aber nicht, wie ich den verlinke.

@dbambus
Copy link
Collaborator

dbambus commented Dec 6, 2024

@BastiMu

Vielen Dank für deinen Pullrequest, ich schaue mir das mal an, wenn ich morgen mal wieder etwas Zeit habe :-) die letzten Wochen waren echt etwas viel.

Mit freundlichen Grüßen
David

@BastiMu
Copy link
Contributor Author

BastiMu commented Dec 6, 2024

Kein Ding, sind ja auch eine Menge Änderungen und Dezember ist immer etwas stressig...

Ich bin auch noch nicht dazugekommen, die Spanische und die Deutsche Variante mit 5-Minuten einzupflegen.

@dbambus
Copy link
Collaborator

dbambus commented Mar 29, 2025

Hey @BastiMu

Sag einfach an, sobald es fertig und getestet ist. Dann merge ich das :-)

Mit freundlichen Grüßen
David

@dbambus dbambus merged commit dc09640 into ESPWortuhr:main Mar 29, 2025
1 of 2 checks passed
hoffie added a commit to hoffie/Multilayout-ESP-Wordclock that referenced this pull request Apr 6, 2025
PR ESPWortuhr#483 introduced changes which reference the fontWidth and fontHeight
variables directly as arrays. However, those two variables are declared
as PROGMEM and may therefore only be referenced as addresses which will
be read from flash via pgm_read_byte.

The array access seems to cause crashes in certain configurations (and
maybe undefined behavior in others?).

This commit changes all fontWidth and fontHeight array accesses to be in
line with the previous usage of those variables: The data is read via
pgm_read_byte.

Fixes: ESPWortuhr#557
Related: ESPWortuhr#550 (comment)

Signed-off-by: Christian Hoffmann <[email protected]>
bool showHours = true;
bool showMinutes = true;
// toogle hours and minutes if clock is not high enough
if (usedUhrType->rowsWordMatrix() < (fontHeight[usedFontSize] * 2 + 1)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbambus @BastiMu This seems to change the digital clock's behavior for the 10x11 layout (10 < 5*2 +1). Is this by intention?

Personally, I'd prefer to use the non-toggle layout there (i.e. drop the +1).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. This is an error.

The toggling is only necessary for the 8x8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants