Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USBHIDKeyboard print function does not reliably output uppercase characters #7578

Closed
1 task done
dbhaig opened this issue Dec 11, 2022 · 3 comments
Closed
1 task done
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@dbhaig
Copy link

dbhaig commented Dec 11, 2022

Board

ESP32-S3-WROOM1

Device Description

ESP32-S3-DevKitC-1

Hardware Configuration

SPI TFT is connected to GPIOs 13, 14, 15, 16, 21, 35, 36, 47

Version

v2.0.5

IDE Name

arduino-cli 0.29

Operating System

Linux

Flash frequency

40MHz

PSRAM enabled

no

Upload speed

921600

Description

Keyboard.println("abcdefghijklmnopqrstuvwxyz");
Gives the expected output of: 'abcdefghijklmnopqrstuvwxyz'

Keyboard.println("ABCDEFGHIJKLOMNPQRSTUVWXYZ");
Gives an output with some characters lower case, such as:
'abCdEFGHIjklOMNPQRStUvwXYZ'
or
' aBcdeFGHIjKLOMNPQrsTuVWXYz'

Sketch

#include "USB.h"
#include "USBHIDKeyboard.h"

USBHIDKeyboard Keyboard;

void setup() {
    Serial.begin(9600);
    Serial.println("Keyboard begin");

    Keyboard.begin();
    USB.begin();
}

void loop() {
    Keyboard.println("abcdefghijklmnopqrstuvwxyz");
    delay(2000);
    Keyboard.println("ABCDEFGHIJKLOMNPQRSTUVWXYZ");
    delay(2000);
}

Debug Message

None

Other Steps to Reproduce

No

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@dbhaig dbhaig added the Status: Awaiting triage Issue is waiting for triage label Dec 11, 2022
@RefactorFactory
Copy link
Contributor

Does #6964 help?

@dbhaig
Copy link
Author

dbhaig commented Dec 12, 2022

@RefactorFactory It is unclear to me how #6964 could be related to the issue I'm observing where the ESP32-S3 is recognized as a keyboard but uppercase characters are sometimes rendered as their corresponding lowercase character.

@dbhaig
Copy link
Author

dbhaig commented Dec 14, 2022

This appears to be an arduino-libraries/Keyboard issue, as code compiled for the ATmega32u4 exhibits similar behaviour.

@dbhaig dbhaig closed this as completed Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

No branches or pull requests

2 participants