It displays "mu" just fine. I found a SSD1306 font converter so I used that. http://oleddisplay.squix.ch/#/home
Is one I found. I tried comparing it with the acii symbol for "mu", which is ascii 238. According to the converter, mu should be "0xFF, 0xFF, 0x00, 0x04", which does not match what was in the tutorial here. In fact it makes the display freak out and scroll through everything. So needless to say, Im a little bit lost and scratching my head.
degree (ascii 248) symbol.
- I think degree is 0xb0 or d176. Do not get hung up on this.
It displays "mu" just fine. I found a SSD1306 font converter so I used that.
- What is the baseline code for this working?
with the acii symbol for "mu", which is ascii 238. According to the converter, mu should be "0xFF, 0xFF, 0x00, 0x04", which does not match what was in the tutorial here. In fact it makes the display freak out and scroll through everything. So needless to say, Im a little bit lost and scratching my head.
- But, the format of the font generated from that tool may not be the same format format.
Can I confirm that you just want to replace a character with the degree character?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The type 1 OLED font set is a variable width px (specified by the first parameters of the character) by 8px height with 'column major' and 'little endian data sets'. See http://dotmatrixtool.com/#
The code segment below.... I have only changed the 4th character of the fontset is 5, 0x06, 0x09, 0x06, 0x00, 0x00 a degree sign.
These fonts sets uses two methods to define the character.
Type 1 OLED font set is a variable width px (specified by the first parameters of the character) by 8px height with 'column major' and 'little endian data sets'.
Type 2 OLED font is a fix width and fix height therefore a fixed proportional fixed with 20 bytes of data per character. This font is larger of 10px by 16 px.
To create the degree? I opened up and existing demo I had with the character. :-) But, you can - you could move the degree character around to change.
:-)
P.S. I will look at using the http://oleddisplay.squix.ch/#/home fonts in the future - it is not hard to create a utility that uses the fonts defined on this site.
P.P.S. I have added the demo code to GitHub. Do not want to loose the program. See here
Last edit: Anobium 2018-01-07
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using an SSD1306 display and I want to display the degree (ascii 248) symbol. Ive read and looked at this tutorial on how to add in my own font, but Im still a little confused.
https://sourceforge.net/p/gcbasic/blog/2017/09/create-your-own-oled-characters-on-your-glcd-noreplyinsfnet/
It displays "mu" just fine. I found a SSD1306 font converter so I used that.
http://oleddisplay.squix.ch/#/home
Is one I found. I tried comparing it with the acii symbol for "mu", which is ascii 238. According to the converter, mu should be "0xFF, 0xFF, 0x00, 0x04", which does not match what was in the tutorial here. In fact it makes the display freak out and scroll through everything. So needless to say, Im a little bit lost and scratching my head.
Code is included just in case.
Last edit: Chris S 2018-01-06
I am confused by the post.
Can I confirm that you just want to replace a character with the degree character?
Yes. That is what I am trying to do.
The type 1 OLED font set is a variable width px (specified by the first parameters of the character) by 8px height with 'column major' and 'little endian data sets'. See http://dotmatrixtool.com/#
The code segment below.... I have only changed the 4th character of the fontset is 5, 0x06, 0x09, 0x06, 0x00, 0x00 a degree sign.
For GLCDPrint ( 2, 1, "35.00#") generates 35.00°. As the degree sign has replaced the # and is 5px wide.
Full code is attached.
Last edit: Anobium 2018-01-06
This works well. Did you just draw a degree character with that tool?
The resource for the fonts sets is https://github.com/PIC-Nico/StartPIC18/blob/master/OLED-Display/font.h When I got the StartPIC18 board I ported the projects to Great Cow BASIC finding these fonts are part of the project.
These fonts sets uses two methods to define the character.
To create the degree? I opened up and existing demo I had with the character. :-) But, you can - you could move the degree character around to change.
:-)
P.S. I will look at using the http://oleddisplay.squix.ch/#/home fonts in the future - it is not hard to create a utility that uses the fonts defined on this site.
P.P.S. I have added the demo code to GitHub. Do not want to loose the program. See here
Last edit: Anobium 2018-01-07