Example Code not working

For some reason one of the example codes in the tutorials for the nibble does not work for me. The code is identical to the example but when I load it onto the nibble it just flickers white, If anyone has had this problem your help would be greatly appreciated!

Here is the code…

#include <Arduino.h>
#include <CircuitOS.h>
#include <Nibble.h>

Display* display;
Sprite* sprite;

void setup() {
Nibble.begin();
display = Nibble.getDisplay();
sprite = display->getBaseSprite();

}

void loop() {
sprite->clear(TFT_WHITE);
sprite->setTextSize(1);
sprite->setTextColor(TFT_BLACK);
display->commit();
sprite->drawString(“Now let’s change”, 5, 32);
sprite->setTextColor(TFT_RED);
sprite->drawString(“colors…”, 5, 48);
sprite->setTextFont(2);
sprite->drawString(“And font!”, 5, 56);
sprite->setTextSize(2);
sprite->drawString(“And SIZE!”, 5, 70);
display->commit();

}

1 Like

Hi there,

thank you for reaching out.

Can you please contact us via email at [email protected] so our programmer can help you with the issue?

Sincerely,
Monika