adafruit / adafruit/Adafruit_Wippersnapper_Arduino

OLED on WipperSnapper won't accept null nor only spaces entry to clear screen

Open
#975 0 comments 0 reactions 1 assignee Claimed by @tyeth View on GitHub
bug display Status: Needs Investigation
Dominant language
C++
Stars
54
Forks
56
Avg merge
2d 12h
Merged PRs (30d)
11

Description

**Describe the bug**
In the text entry box where you can manually send text to the display (clicking the pencil icon next to the text box) it will not allow you to send a null entry ("Cannot be blank" displays if you simply hit the Send button). Furthermore it won't accept entering only spaces.

As a work around is will accept a line feed character \n which effectively clears the screen.

***Arduino board***
Qt Py S3

**To Reproduce**
Steps to reproduce the behavior:
1. Go to my device on the IO page (e.g. https://io.adafruit.com/Timeline/devices/qtpy-esp32s3-n4r21401629)
2. Click on the pencil icon next to the text box for the OLED
3. Without entering any text, hit the send button and get a "Cannot be blank" error.
4. Enter in any number of spaces (and no other characters) then hit the send button and get a "Cannot be blank" error.

**Expected behavior**
For no text I would want the display to simply clear.
For spaces only, as these are valid ASCII text characters, I would expect to be able to send them to the display

**Which components are connected to your device**
128x64 OLED (Large Font) [oled128x64large] [SSD1306]
Humidity SHT41 %h [sht41:humidity]
Temperature SHT41 (°F) [sht41:ambient-temp-fahrenheit]
Through the stemma ports order of devices is QtPy, SHT41, then OLED (SSD1306) last.

**Screenshots**

Image

**Desktop (please complete the following information):**
- OS: Mac Sequoia v15.7.7
- Browser: Chrome
- Version: Version 151.0.7922.170 (Official Build) (x86_64)

**Smartphone (please complete the following information):**
N/A

**Additional context**
I did not try it with the small font version of the OLED but I assume that has nothing to do with it. However I can switch it if it would be helpful.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.