Skip to content

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

Description

@Timeline8

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions