qmk/qmk_firmware

[Bug] oled_write_pixel not painting vertical line SSD1306

Open

#10.074 geöffnet am 17. Aug. 2020

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C (43.867 Forks)batch import
bughelp wanted

Repository-Metriken

Stars
 (20.368 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 20T 9h) (27 gemergte PRs in 30 T)

Beschreibung

Hi, I can't get a vertical line to be painted in the SSD1306(128x32) using the oled_write_pixel. In my keymap.c I have this code. This should paint a vertical line in the x = 16, from the start of the screen y =0 till the end y = 32. Here there is an image: Here

void oled_task_user(void)
{
    uint8_t x0 = 16;
    uint8_t x1 = 16;
    uint8_t y0 = 0;
    uint8_t y1 = 31;
    for (; x0 <= x1; x0++)
    {
        for (; y0 <= y1; y0++)
        {
            oled_write_pixel(x0, y0, true);
        }
    }
}

I don't have anything special in my rules.mk or anything... just the OLED_DRIVER_ENABLE = yes

Contributor Guide