Got rid of (most of) all of the warnings.

This commit is contained in:
2019-05-30 11:26:13 +02:00
parent 711d028e90
commit 0d3896ca0d
9 changed files with 8 additions and 9 deletions

View File

@ -8,7 +8,7 @@ void BellEffect::loop() {
for (int y = 0; y < 16; y++) {
for (int x = 0; x < 2; x++) {
for (int z = 0; z < 8; z++) {
leds[XYsafe(x * 8 + z, y)] = sprite_bell[y * 2 + x] >> (7 - z) & 1 ^ invert ? color_on : color_off;
leds[XYsafe(x * 8 + z, y)] = (sprite_bell[y * 2 + x] >> (7 - z) & 1) ^ invert ? color_on : color_off;
}
}
}

View File

@ -11,7 +11,7 @@ void BigClockEffect::drawNumber(uint8_t number, int x, int y, CRGB color) {
}
void BigClockEffect::drawText(char *text, int x, int y, CRGB color) {
for (int i = 0; i < strlen(text); i++) {
for (uint8_t i = 0; i < strlen(text); i++) {
drawSprite(font_char(numbers4x7, text[i]), x + i * 4, y, color);
}
}

View File

@ -1,4 +1,3 @@
#include <FastLED.h>
#include "my_fastled.h"
CRGB leds[LED_COUNT];

View File

@ -20,7 +20,7 @@ void drawDigit(Window window, unsigned char* font, int w, int h, int x, int y, i
}
void drawText(Window window, char *font, int w, int h, char *text, int x, int y, CRGB color) {
for (int i = 0; i < strlen(text); i++) {
for (uint16_t i = 0; i < strlen(text); i++) {
drawChar(window, font5x7, 5, 7, x+i*(w+1), y, text[i], color);
}
}