From 350a6ee629575070eb31e9c062b48d0f748d804d Mon Sep 17 00:00:00 2001 From: Scott Allen Date: Mon, 10 Aug 2020 17:01:06 -0400 Subject: [PATCH] Fix a cursor position bug in BeepDemo example --- examples/BeepDemo/BeepDemo.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/BeepDemo/BeepDemo.ino b/examples/BeepDemo/BeepDemo.ino index 7df55d7..436d678 100644 --- a/examples/BeepDemo/BeepDemo.ino +++ b/examples/BeepDemo/BeepDemo.ino @@ -52,6 +52,8 @@ void loop() { arduboy.pollButtons(); + arduboy.clear(); + if (arduboy.justPressed(LEFT_BUTTON)) { // Play a 523.251Hz tone (piano note C5) for 5 frames (200ms at 25 FPS) // beep.freq(523.251) is used to convert 523.251Hz to the required count @@ -127,7 +129,7 @@ void loop() { objectX = 0; } - arduboy.display(CLEAR_BUFFER); + arduboy.display(); } void commandText(const char* text) {