diff --git a/README.md b/README.md index a0f9588d2796d0fd4741c6cad95db090f0f34e29..8732f48de7e0df346e171637d5540dd052579641 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -TODO : Add stuff +TODO : Fix Scope diff --git a/scope.cpp b/scope.cpp index b0dddd81c9d45c579a5f6da68728a08691b7cb15..39acbd91e5ab3afb883646960aaa5f71952f589a 100644 --- a/scope.cpp +++ b/scope.cpp @@ -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);