SSD1306 INCLUDE for PBP3


Closed Thread
Results 1 to 40 of 102

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,656


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 INCLUDE for PBP3

    Yes any font can be created in fixed or variable width
    Warning I'm not a teacher

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,144


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 INCLUDE for PBP3

    OK, thanks.

    Will order then a few to play with.

    Ioannis
    Last edited by Ioannis; - 9th December 2021 at 14:22.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,144


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 INCLUDE for PBP3

    How are fonts or special symbols to be designed for SSD1306?

    I could not figure out studying the font7x5 include files.

    As I posted above I need to design some chess pieces and 5x7 is not enough space.

    Ioannis

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,656


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 INCLUDE for PBP3

    i use MikroElektronika GLCD Font Creator

    here is example pawns as 16x16 font [variable width C code output new type ]
    chars A,B,C,D have been mapped to black pawn on black square , black pawn on white square
    and white pawn on black square , white pawn on white square



    PAWNS.BAS

    Code:
      
    ;//Font Generated by MikroElektronika GLCD Font Creator 1.2.0.0;//MikroElektrnika 2011 
    ;//http://www.mikroe.com 
    
    
    ;//GLCD FontName : pawns16x16
    ;//GLCD FontSize : 16 x 16
    
    
    ;const unsigned short pawns16x16[] = {
    goto overpawns
    pawns:
     @ db 0X00,0
     @ db 0X41,0X00
     @ db 0X44,0X00
     @ db 0X10,0
     @ db 0XF,0X18,0X00,0X00
     @ db 0XF,0X38,0X00,0X00
     @ db 0XF,0X58,0X00,0X00
     @ db 0XF,0X78,0X00,0X00
     @ db 0XC0,0X01,0X20,0X02,0X10,0X04,0X10,0X04,0X20,0X02,0X40,0X01,0X78,0X0F,0X08,0X08,0X78,0X0F,0X40,0X01,0X20,0X02,0X10,0X04,0X08,0X08,0XFC,0X1F,0X00,0X00,0XFE,0X3F; // Code for char num 65
     @ db 0XC0,0X01,0XE0,0X03,0XF0,0X07,0XF0,0X07,0XE0,0X03,0XC0,0X01,0XF8,0X0F,0XF8,0X0F,0XF8,0X0F,0XC0,0X01,0XE0,0X03,0XF0,0X07,0XF8,0X0F,0XFC,0X1F,0X00,0X00,0XFE,0X3F; // Code for char num 66
     @ db 0X3F,0XFE,0X1F,0XFC,0X0F,0XF8,0X0F,0XF8,0X1F,0XFC,0X3F,0XFE,0X07,0XF0,0X07,0XF0,0X07,0XF0,0X3F,0XFE,0X1F,0XFC,0X0F,0XF8,0X07,0XF0,0X03,0XE0,0XFF,0XFF,0X01,0XC0; // Code for char num 67
     @ db 0X3F,0XFE,0XDF,0XFD,0XEF,0XFB,0XEF,0XFB,0XDF,0XFD,0XBF,0XFE,0X87,0XF0,0XF7,0XF7,0X87,0XF0,0XBF,0XFE,0XDF,0XFD,0XEF,0XFB,0XF7,0XF7,0X03,0XE0,0XFF,0XFF,0X01,0XC0; // Code for char num 68
     ;       };
    overpawns:
    Warning I'm not a teacher

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,656


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 INCLUDE for PBP3

    http://www.picbasic.co.uk/forum/show...363#post147363

    use ssd1306 code from here , it can use variable width fonts that do not have to be hand coded
    makes life easy

    i have a ver that can do bmp like images too if interested
    Warning I'm not a teacher

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,144


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 INCLUDE for PBP3

    Thank you very much. Your support and help is beyond words.

    The selection of pixel columns and lines is really slow process. Seems you cannot numerically define lines and columns. Just adding one at a time waiting to complete.

    Then, what are your settings for export?

    Be blessed,
    Ioannis
    Last edited by Ioannis; - 20th December 2021 at 08:08.

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    2,656


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 INCLUDE for PBP3

    step 1 create a font
    Name:  f0.jpg
Views: 3238
Size:  151.9 KB
    step 2 edit it to taste
    Name:  f1.jpg
Views: 3456
Size:  124.0 KB
    step 3 create blank include file
    and export
    Name:  f2.jpg
Views: 3196
Size:  154.2 KB
    step 4 paste export in suitable format into include
    Name:  f3.jpg
Views: 3645
Size:  168.4 KB

    do some editing to get it to pbp format
    remembering never allow a odd number of bytes on a line
    never change order or number of data bytes to encode
    Warning I'm not a teacher

Similar Threads

  1. SSD1306 Include example
    By timc in forum Code Examples
    Replies: 11
    Last Post: - 28th November 2017, 08:53
  2. SSD1306 start display problem
    By harryweb in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th December 2016, 19:16
  3. Using INCLUDE to add a text file in PBP3
    By Sumobob in forum PBP3
    Replies: 4
    Last Post: - 16th May 2016, 18:56
  4. PBP3 to include 18F97J94?
    By fowardbias in forum PBP3
    Replies: 1
    Last Post: - 18th December 2013, 16:42
  5. Help With OLED Display / 128X64 SSD1306
    By Denner in forum General
    Replies: 6
    Last Post: - 25th May 2013, 15:40

Members who have read this thread : 7

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts