From 7b27e012011f23740525452b48353189cfdc881c Mon Sep 17 00:00:00 2001
From: ed8g20 <ed8g20@soton.ac.uk>
Date: Mon, 15 May 2023 10:47:42 +0000
Subject: [PATCH] Update 2 files

- /scope.cpp
- /README.md
---
 README.md |  2 +-
 scope.cpp | 13 ++++++-------
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md
index a0f9588..8732f48 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 b0dddd8..39acbd9 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);
-- 
GitLab