Skip to content

Commit f669d90

Browse files
increase led brightness for snake and pong to match clock brightness
1 parent 9d458ce commit f669d90

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pong.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,13 @@ void Pong::toggleLed(uint8_t x, uint8_t y, uint8_t type)
277277

278278
switch(type) {
279279
case LED_TYPE_PADDLE:
280-
color = LEDMatrix::Color24bit(0, 80, 80);
280+
color = LEDMatrix::Color24bit(0, 255, 255);
281281
break;
282282
case LED_TYPE_BALL_RED:
283-
color = LEDMatrix::Color24bit(120, 0, 0);
283+
color = LEDMatrix::Color24bit(255, 0, 0);
284284
break;
285285
case LED_TYPE_BALL:
286-
color = LEDMatrix::Color24bit(0, 100, 0);
286+
color = LEDMatrix::Color24bit(0, 255, 0);
287287
break;
288288
case LED_TYPE_OFF:
289289
color = LEDMatrix::Color24bit(0, 0, 0);

snake.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,16 @@ void Snake::toggleLed(uint8_t x, uint8_t y, uint8_t type)
267267

268268
switch(type) {
269269
case LED_TYPE_SNAKE:
270-
color = LEDMatrix::Color24bit(0, 100, 100);
270+
color = LEDMatrix::Color24bit(0, 255, 255);
271271
break;
272272
case LED_TYPE_EMPTY:
273273
color = LEDMatrix::Color24bit(0, 0, 0);
274274
break;
275275
case LED_TYPE_FOOD:
276-
color = LEDMatrix::Color24bit(0, 150, 0);
276+
color = LEDMatrix::Color24bit(0, 255, 0);
277277
break;
278278
case LED_TYPE_BLOOD:
279-
color = LEDMatrix::Color24bit(150, 0, 0);
279+
color = LEDMatrix::Color24bit(255, 0, 0);
280280
break;
281281
}
282282

0 commit comments

Comments
 (0)