From 2964915b5fdeb307dbb87536ee601ca25c08008d Mon Sep 17 00:00:00 2001 From: labkey-matthewb Date: Mon, 9 Sep 2024 09:04:24 -0700 Subject: [PATCH] fix oled.drawStr() example --- examples/Field/oled/oled.ino | 2 +- examples/Patch/Oled/Oled.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Field/oled/oled.ino b/examples/Field/oled/oled.ino index 4b9236a..e820a0f 100644 --- a/examples/Field/oled/oled.ino +++ b/examples/Field/oled/oled.ino @@ -32,7 +32,7 @@ void setup() { void loop() { oled.clearBuffer(); - char c[] = {str[pos]}; + char c[] = {str[pos], 0}; oled.drawStr(x, y, c); x += xvel; y += yvel; diff --git a/examples/Patch/Oled/Oled.ino b/examples/Patch/Oled/Oled.ino index 977748f..89f93da 100644 --- a/examples/Patch/Oled/Oled.ino +++ b/examples/Patch/Oled/Oled.ino @@ -33,7 +33,7 @@ void setup() { void loop() { oled.clearBuffer(); - char c[] = {str[pos]}; + char c[] = {str[pos], 0}; oled.drawStr(x, y, c); x += xvel; y += yvel;