#include <Pokitto.h>
Pokitto::Display display;
Pokitto::Buttons buttons;
int counter = 0;
int moveY = 0;
int moveX = 0;
void setup(){
}
void update(){
if (buttons.pressed(BTN_UP)){
counter = counter + 1;
}
if (buttons.pressed(BTN_DOWN)){
counter = counter - 1;
}
if (buttons.pressed(BTN_B)){
counter = 0;
}
display.setInvisibleColor(0);
display.setColor(C_BROWN);
display.fillRect(moveX, moveY, counter, 88);
display.setColor(C_RED);
display.print(counter);
}
So I’m wanting to move the text around and fix the colour, I’m also wanting to add sounds which I’m not sure how to do (a simple beep everytime you press up or down ect)