hi C,
Try this program, added the character fonts you coded.
Displays a full screen of data for 2 secs. then deletes one line at a time and then repeats full screen
Let me know how it does, it works without any problems at my end.
hi C,
Try this program, added the character fonts you coded.
Displays a full screen of data for 2 secs. then deletes one line at a time and then repeats full screen
Let me know how it does, it works without any problems at my end.
hi C,
Try this program, added the character fonts you coded.
Displays a full screen of data for 2 secs. then deletes one line at a time and then repeats full screen
Let me know how it does, it works without any problems at my end.
hi C,
This 5110 program has been cleaned up and the lcd fonts moved to fonts1.bas, this means the main program has an include "font1.bas"
Install the font1.bas in the same folder as the Cam5110 basic.
I have added some Procedures to make the msg control easier, also a simple ADC0 lcd display.
You need to have a pot input to ADC0 in, across +V and 0v, tweak the pot and the lcd display will show the voltage.
Enjoy, let me know if any bugs or additions you would like to see.
hi C,
This 5110 program has been cleaned up and the lcd fonts moved to fonts1.bas, this means the main program has an include "font1.bas"
Install the font1.bas in the same folder as the Cam5110 basic.
I have added some Procedures to make the msg control easier, also a simple ADC0 lcd display.
You need to have a pot input to ADC0 in, across +V and 0v, tweak the pot and the lcd display will show the voltage.
Enjoy, let me know if any bugs or additions you would like to see.
Hi E,
All working, including the ADC0 POT. I'll need to read and play to see how it all works.
You ask if I would like any additions, I'll start a new thread as this one looks like it's working better than expected.
Thank.
C.
Hi Eric,
Just reading your program! Can you clear a couple of things up please?
1/ Below 'convert any binary' What does DP mean?
2/I have LEDS at RA1 and RA2, where you have TRISA = 0x2f, is %00101001 ok?
3/ For PINs setting, I like the more visual %00000000, where you use the HEX, or is there a reason, i,e your so familiar, that it's easy for you?
C.
Morning C,
You asked me before ref DP, its simply a decimal point.
As you know most of the projects we do, involve displaying maths results so a DP is essential.
The binary to ASCII convert, produces a numeric string in ascbfr4[MSD] down to ascbfr0 [LSD], so you have to decide where to place the DP in that string to give decimal places.
Ref the %xxxxxxxx versus 0xXX, no problem.
I have done a big numeric font for the 5110, that gives 3 lines of 7 big numbers.
Morning C,
You asked me before ref DP, its simply a decimal point.
As you know most of the projects we do, involve displaying maths results so a DP is essential.
The binary to ASCII convert, produces a numeric string in ascbfr4[MSD] down to ascbfr0 [LSD], so you have to decide where to place the DP in that string to give decimal places.
Ref the %xxxxxxxx versus 0xXX, no problem.
I have done a big numeric font for the 5110, that gives 3 lines of 7 big numbers.
Afternoon E,
"you asked me before" I don't doubt it! My memory for programming would fit on a stamp. I have to print out and colour in Programs with lots of comments. All none obvious stuff i,e 'OR' 'LEN' 'MIDSTR' etc I will have to find a previous note I'll have somewhere. That's ok! With your help, we usually get there.
%00000000, Good.
Regarding the big number font, it sounds good. Here's an image maker, I bumped into while looking up 5110 stuff, I've opened it but never tried it, perhaps it's interesting?
LEN is the length of the String, so LEN(oldstr)= 9
MIDSTR is used to select a single character or a sequence of characters from a string.
Let oldstr = "123456789"
eg newstr = MIDSTR( oldstr, start from char number, number of chars)
So newstr =MIDSTR(oldtsr ,1, 1) would start at char #1 and get one char , so newstr= "1"
So newstr =MIDSTR(oldtsr ,2, 3) would start at char #2 and get 3 chars , so newstr= "234"
E
LEN is the length of the String, so LEN(oldstr)= 9
MIDSTR is used to select a single character or a sequence of characters from a string.
Let oldstr = "123456789"
eg newstr = MIDSTR( oldstr, start from char number, number of chars)
So newstr =MIDSTR(oldtsr ,1, 1) would start at char #1 and get one char , so newstr= "1"
So newstr =MIDSTR(oldtsr ,2, 3) would start at char #2 and get 3 chars , so newstr= "234"
E
Hi E,
LEN's a bit clearer now, thanks. Just put it in a text then into my MODULES folder where I came across OPERANDS 'AND' 'NOT' and 'OR'
My son gave me his broken ZXSpectrum a week or so ago. I fixed it and had to play a while before remembering how to work it's quirky keyboard, so the ol' memory does come back if I play for a while.
C.
hi C,
Try this 5110 SPI program.
You need the ADC pot, it shows the big FONT numeric digits and nominal 1 second count on the bottom line.
Let me know how it goes.
E
Ignore the 'degrees' symbol it was just a try for GPS use later.
hi C,
Try this 5110 SPI program.
You need the ADC pot, it shows the big FONT numeric digits and nominal 1 second count on the bottom line.
Let me know how it goes.
E
Ignore the 'degrees' symbol it was just a try for GPS use later.
hi,
OK.
If we have to display time in hh:mm:ss format on the 5110 LCD, it means that the latest big font will need a little width shrink.
Currently its 7 chars/row, we need 8.
I'll do that later and post an upto date font list.
The link you posted is for a graphical display and is not really suitable for the 5110.
hi,
OK.
If we have to display time in hh:mm:ss format on the 5110 LCD, it means that the latest big font will need a little width shrink.
Currently its 7 chars/row, we need 8.
I'll do that later and post an upto date font list.
The link you posted is for a graphical display and is not really suitable for the 5110.
Hi E,
I'm guessing that there may be a number of 'FONTS' as ideas flow. In previous programs I used a MENU to choose different choices of i,e, camera shoot timings. There is a button at RC0, if pressed at start-up it could go through MENUs while flashing a LED, so a count of flashes would set the MENU choice. If this is any good for you.
Graphical display----OK.
C.
hi,
OK.
If we have to display time in hh:mm:ss format on the 5110 LCD, it means that the latest big font will need a little width shrink.
Currently its 7 chars/row, we need 8.
I'll do that later and post an upto date font list.
The link you posted is for a graphical display and is not really suitable for the 5110.
Is'nt 5110 graphical display.
With Oshonsoft Basic it is not easy to display big bitmaps on it, but for example displaying xy graphs, draw lines etc. is possible.
Is'nt 5110 graphical display.
With Oshonsoft Basic it is not easy to display big bitmaps on it, but for example displaying xy graphs, draw lines etc. is possible.
hi C,
I have no plans for graphics with the 5110.
Look at this latest Font, 8 characters/row, 3 rows Basic.
Shows the time format also N and E coords.
I have made those %0000 port A changes, just them.
E
EDIT:
Shuffled the font a little to get the North/East ident.