Skip to content
Snippets Groups Projects
Commit 7b27e012 authored by ed8g20's avatar ed8g20
Browse files

Update 2 files

- /scope.cpp
- /README.md
parent 11c85b0c
Branches
No related tags found
No related merge requests found
TODO : Add stuff
TODO : Fix Scope
......@@ -30,18 +30,17 @@ int main() {
led.set_rgb(red, green, blue);
st7789.set_backlight(255);
while(true) {
if(button_a.read()) red++;
if(button_b.read()) green++;
if(button_x.read()) blue++;
//TODO: read the value of button a,b,x and iterate through RGB values
led.set_rgb(red, green, blue);
graphics.set_pen(255-red, 255-green, 255-blue);
graphics.clear();
//TODO: set the background to the inverse of the text colour
graphics.set_pen(red, green, blue);
char buf[100];
sprintf(buf, "Colour = #%02x%02x%02x", red, green, blue);
//TODO: write the value "Colour = #______" where _ is the hex colour code, into buf
graphics.text(buf, Point(20,20), 100);
st7789.update(&graphics);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment