Skip to content

Commit 56de7fa

Browse files
authored
Merge pull request #462 from dbambus/main
Few Fixes for Release Candidate
2 parents b848f5a + 35ed6db commit 56de7fa

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

include/Transitiontypes/Transition.hpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ void Transition::setMinute() {
352352
}
353353
for (uint8_t i = 0; i < 4; i++) {
354354
led.setPixel(minArray[i],
355-
HsbColor{m > i ? foreground : background});
356-
// TODO: foregroundMinute
355+
HsbColor{m > i ? foregroundMinute : background});
356+
// TODO: fading transition for Minutes
357357
}
358358
}
359359
}
@@ -1023,7 +1023,9 @@ bool Transition::isOverwrittenByTransition(WordclockChanges changesInWordMatrix,
10231023
initTransitionStart();
10241024
}
10251025
lastMinute = minute;
1026-
matrixChanged = true;
1026+
if (changesInWordMatrix != WordclockChanges::Minute) {
1027+
matrixChanged = true;
1028+
}
10271029
return false;
10281030
} else {
10291031
if (changeBrightness()) {
@@ -1056,6 +1058,9 @@ void Transition::loop(struct tm &tm) {
10561058

10571059
if (matrixChanged) {
10581060
matrixChanged = false;
1061+
if (isColorization() && (G.transitionSpeed > 0)) {
1062+
copyMatrix(act, work);
1063+
}
10591064
saveMatrix();
10601065
copyMatrix(work, act);
10611066
}
@@ -1130,6 +1135,10 @@ void Transition::loop(struct tm &tm) {
11301135
copy2Stripe(work);
11311136
if (!specialEvent) {
11321137
setMinute();
1138+
if (G.secondVariant != SecondVariant::Off) {
1139+
led.setbySecondArray();
1140+
// Workaround: setbySecoundArray not in 'work'
1141+
}
11331142
}
11341143
led.show();
11351144
}

include/Uhr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ enum class WordclockChanges {
9292
};
9393

9494
struct GLOBAL {
95-
uint8_t sernr;
95+
uint16_t sernr;
9696
uint16_t prog;
9797
uint8_t param1;
9898
bool progInit;

include/clockWork.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ void ClockWork::scrollingText(const char *buf) {
253253
led.show();
254254

255255
i++;
256-
if (i >= pgm_read_byte(&(fontWidth[normalSizeASCII]))) {
256+
if (i >= pgm_read_byte(&(fontWidth[normalSizeASCII])) + 1) // +1 for spacing
257+
{
257258
i = 0;
258259
ii++;
259260
if (ii >= strlen(buf)) {

include/config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
* NeutralWhite (4300K) or ColdWhite (6500K)), in the case of RGB just leave it
152152
* at NeutralWhite.
153153
*
154-
* Valid values for DEFAULT_LEDTYPE [Brg, Grb, Rgb, Rbg, Grbw]
154+
* Valid values for DEFAULT_LEDTYPE [Brg, Grb, Rgb, Rbg, Gbr, Grbw]
155155
*
156156
* Valid values for WHITE_LEDTYPE [WarmWhite, NeutralWhite, ColdWhite]
157157
*/
@@ -198,9 +198,9 @@
198198
/*
199199
* To delete or initialize the EEPROM, enter another serial number here.
200200
*
201-
* Valid values [0 ... 255]
201+
* Valid values [0 ... 65536]
202202
*/
203-
#define SERNR 58
203+
#define SERNR 400
204204
//--------------------------------------------------------------------------
205205
// Toggle Serial DEBUG Output
206206
//--------------------------------------------------------------------------

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "multilayout-esp-wordclock",
3-
"version": "3.4.0",
3+
"version": "4.0.0",
44
"description": "For building a german layouted wordclock with an esp8266 module and WS2812/SK2812.",
55
"license": "BSD-3-Clause",
66
"contributors": [

0 commit comments

Comments
 (0)