I want to print on an oled display a couple of special Characters and I want to know how to go about doing that. The characters I want to make/Print are:
✓ and a character to indicate ON Similar to the one in the image below
For an OLED display, it might be good to see how you can define the special characters as pictures. So when you want to show it, you just use a command to visualize a bmp image, as this still depends on the libraries you use, but you didn't say which ones they are.
Just an additional idea that might be worth a try.
I wanted to print a special yet familiar character, the 'μ' (Mu) symbol. I tried using ASCII code 0xB5 (DEC 181) in a Serial.write(181); statement, but this gave a non-printing character.
In the end, I simply copy & paste'd the symbol from an Arduin-forum website directly into the message string, as in Serial.println("time(μs)"); This had worked!!!
When printing the display-code using Serial.println('μ', DEC);,
the result was 52924 (0xCEBC). How could one have derived that code from Arduino documentation or its IDE?
The OP's ON-symbol is likely special-to-purpose, but the tick-symbol might already exist in the display system's font/code-table.
The above might seem "quirky", but some simple emperically-based solutions can save an awful lot of headache.
nb. The pronounciation of "μ" is a bit similiar to the first sylable of the German word "mühsam", an adjective meaning "laborious".
The serial monitor uses UTF-8 unicode encoding. You do need to be careful if using char arrays that you have sufficient space for the multi-byte characters.
I tried the same copy+paste trick (from webpage to code in IDE ) with the tick/check symbol and this worked too!! Whatever character-mapping the OP is using, this would be an easy way to test what is in that map.