glv
September 29, 2021, 9:57am
3
Hello,
You can write your own custom routines.
I did this all the time in small embedded systems when a library just bloated the code .
Take a look at the ASCII table and you will see patterns that you can work with.
void draw()
{}
void keyPressed()
{
//if (key >= 0x61 && key <= 0x7A)
if (key >= 'a' && key <= 'z')
{
println(key, "LowerCase");
println(char(key + 'A' - 'a'), "UpperCase");
}
}
References:
ASCII (/ˈæskiː/ (listen) ASS-kee),: 6 abbreviated from American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices. Most modern character-encoding schemes are based on ASCII, although they support many additional characters.
The Internet Assigned Numbers Authority (IANA) prefers the name US-ASCII for this character encoding.
ASCII is one of the IEE...
:)
2 Likes