you can't use my RJUSTBUFF user command unless you include the file that defines it .What have I missed?
it can be found at the link in the comment ,its included with the strtok code
http://support.melabs.com/forum/picb...strtok-usercmd
you can't use my RJUSTBUFF user command unless you include the file that defines it .What have I missed?
it can be found at the link in the comment ,its included with the strtok code
http://support.melabs.com/forum/picb...strtok-usercmd
Warning I'm not a teacher
Hi Richard,
Excellent work, thank you. I found my problem - the "strtok.pbpmod" Inc file I used was the older version, somehow I missed the update further down the page on that link.
All works well, now I need to get my head around how you've performed the magic and modify the code to suit my layout and various pages of information shown on the Nokia display.
Once again many thanks for the help, you are indeed an asset to the forum.
Cheers,
Bill
because I forgot to post itsomehow I missed the update further down the page on that link.![]()
Warning I'm not a teacher
Richard & gang... Just wanted to mention that my prototype board for the 5110 display works great and my "minimal" XC8 demo program ended up using 370 words of memory, including 240 words for the packed 5x7 font table.
Also just got my little 128x32 SSD1306 I2C OLED display running with a 16F1823. Man, these OLED displays are really nice. A "bare bones" XC8 program + packed 5x7 font table uses 485 words of memory so a bit more 'overhead' for the low-level SSD1306 controller and I2C functions. However, the 2-pin interface more than makes up for the extra code (grin). Not sure how useful a 5x7 font will be on these little displays...
Cheerful regards, Mike
![]()
Last edited by Mike, K8LH; - 2nd July 2018 at 04:58.
well done mike
have you tried your code on a pic18 yet ?
I have come unstuck , can't stop xc8 either overwriting my font , or saying it won't fit or just deciding not to include it at all .
wasted days on this . there must be a how to use psect manual somewhere
Warning I'm not a teacher
Is this a problem with PIC18 only, Richard? I haven't tried using a PSECT on PIC18, yet...
I'm working with a 18f25k22 and getting much grief getting a PSECT to work as intended .
I could store the font as const unsigned int font [][3] { {0,0,0},{……}} but it would be nice to have an include that can be used in either
pic16 or pic18 chips
Warning I'm not a teacher
Bookmarks