I meant this (below) instead of "CALL"
Why you are using CALL, shouldn't those be GOSUB instead?Code:GOSUB LCD_Clear
BR,
-Gusse-
I meant this (below) instead of "CALL"
Why you are using CALL, shouldn't those be GOSUB instead?Code:GOSUB LCD_Clear
BR,
-Gusse-
YES !!!! That work ! THANK YOU !
I have learning again one more thing. Thanks to You, all members of this great forum. I'm happy !
Now, I want to make the next step : "up-grading" the schematic from here - http://www.picbasic.co.uk/forum/show...7&postcount=35 for using with N3310 display. I will keep You on line ! All the best !
Now my project it is in this stage - see photo 1. I ask -again, sorry ! - for help : how to make like in photo 2 ? I do not understand how 'advanced' to next line (I think because of my poor english...). I read the N3310 display .pdf and many examples, but still don't understand... Can somebody explain to me, please ?
You want to have "Temp:" on Row0 and temperature reading on Row1? If this is the case then I recommend to use library from post #95.
This is how you can move positions on screen.
Code:PosX=[X-axis pos]:PosY=[Y-axis pos]:Gosub Lcd_GotoXY
1) Goto PosX=0 and Pos=0
Then add LCD write routines to display "Temp:"Code:PosX=0:PosY=0:Gosub Lcd_GotoXY
2) calculate where you want to write on Row1.
X-axis
84 pixel, 6 pixel width per character = 16 character per line
Temp: -> 5 character -> 5 * 6 pixel = 30 (start pixel for temp reading)
PosX=30
Y-axis
48 pixel, 8 height per character = 6 character per column
1st row = 0, 2nd = 1, ... 6th = 5
PosY=1
Then add LCD write routines to display temperature reading.Code:PosX=30:PosY=1:Gosub Lcd_GotoXY
To take library into use, insert this to your code and save & unzip-file Nokia_LCD_3310_7110.zip to same directory (or mod path).
You might want to use also other library functions... it might easier your life...Code:'----- LCD Setup ----- include "LCD_3310.pbp"
BR,
-Gusse-
Library file is in post #93, not #95. Sorry!
BTW, why I cannot modify/edit my own posts after pressing "Submit Reply" -button??
BR,
-Gusse-
Thank You ! ... I modifiy the code like in attachament, but now I have nothing on display... After the line of code that I inserted it's need to put another's commands ? Only this single line it's not enough ?
( ..... Char = 18
call PrintChar
PosX=30 : PosY=1 : Gosub LCD_GotoXY
if TempH > 99 then
Char = 1
call PrintChar
else
Char = 10 ' + plus
if Predznak = 1 then Char = 11 ' - minus
call PrintChar
endif
Char = (temph dig 1)
call PrintChar
Char = (temph dig 0)
call PrintChar
Char = 12
call PrintChar
Char = (temperature dig 3)
Call PrintChar
goto main )
Please, take a look how I did with my accelerator demo application
Nokia LCD with 3D-accelerometer.
In this demo, I didn't use library file, but all relevant LCD routines are under "LCD stuff" section in the code (zip-file).
You can always copy content of library to your code, if you have problems with included files.
One line is enough, it is so simple
BR,
-Gusse-
Bookmarks