From 982253c416aaff93706ab95a2f58ba3fe9c51512 Mon Sep 17 00:00:00 2001 From: Gee Bartlett Date: Fri, 28 Oct 2022 17:57:18 +0100 Subject: [PATCH] Update gfx_demo.cpp --- examples/gfx_pack/gfx_demo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gfx_pack/gfx_demo.cpp b/examples/gfx_pack/gfx_demo.cpp index 6bd2d746..4d7fde10 100644 --- a/examples/gfx_pack/gfx_demo.cpp +++ b/examples/gfx_pack/gfx_demo.cpp @@ -45,7 +45,7 @@ void from_hsv(float h, float s, float v, uint8_t &r, uint8_t &g, uint8_t &b) { int main() { - st7567.set_backlight(255); + st7567.set_backlight(50); struct pt { float x; @@ -114,7 +114,7 @@ float hue = 0.0; graphics.text("Hello World", text_location, 320); // update screen - backlight_rgb.set_hsv(hue, 0.0f, 1.0f); + backlight_rgb.set_hsv(hue, 1.0f, 1.0f); hue += 0.002; st7567.update(&graphics); sleep_ms(1000/15);