Great! More Nokia LCD applications are always welcome
I have plenty of Nokia color LCD. Maybe that is next step... , but not soon...
BR,
-Gusse-
Great! More Nokia LCD applications are always welcome
I have plenty of Nokia color LCD. Maybe that is next step... , but not soon...
BR,
-Gusse-
Hi to all !
Based on the code from here : http://www.picbasic.co.uk/forum/show...7&postcount=35, I intend to use the Nokia-LCD for the thermostat; I attach the schematic. Please, help with TRISB,TRISA,PORTB,PORTA,OPTION_REG setting, because, even I read the datasheet, I don't understand why Mr.GioppY say :
TRISB = %11000010
TRISA= % 10100010
In the schematic I see : RB6,RB7 not used - why "1" ?
RA7 not used - why "1" ?
Can someone explain me ? Thanks in advance !
May be he used it for some tasks and forgot to make it Output (0).
So if you do not intent to use them, make it output. If you still want to keep it Input suggest to tie pull up or pull down resistors. Do not let any pin float.
Ioannis
Here is an include file that has been modified from many peoples code in this thread, and Darrel's PrintStr function, for the nokia-3310. It allows for very simple printing to the LCD.
You can also print different things on the same line, by using the x, and y, positions.
example:
Code:DEFINE OSC 48 include "modedefs.bas" include "LCD_3310.pbp" start: @ PrintStr 0,0, "I love being" @ PrintStr 0,1, "able to print " @ PrintStr 0,2, "so easily!"
Very nice! Now printing to Nokia LCD is definitely easier.
Thank You and Darrel!
Hi again !
Based on the schematic from post #119 I wrote the code from the thermostat ; but nothing happening when I push button on pin 7, or 8, or 9. I know that something is wrong, but I need help...Thanks in advance for every reply !
Hello fratello,
Can you tell us if there are any parts that do work? It is always easier to trouble shoot if you know where to start.
Like:
Can it blink an LED, or are we unsure if it is even starting up?
Does it print to the LCD, and just not give you the temperature, or is the LCD blank?
I want make digital code lock + speedometer with pic and 3310 lcd
Plz help me for code in picbasic
On the meter then first code lock on if code don then speedometer on
And distance save in pic internal eeprom
Tahir maqsood
Based on code that I post at #155, it is possible to use BIG fonts like in this example : http://users.picbasic.org/Howto/PPRI...t%20update.pdf ? Of course, just display the temperature, with big font, without others graphical elements... The commands are in Proton+ ,but it's possible to use with PBP ? What are You thinking ? Thanks in advance for every repply !
It looks possible. You would have to create custom characters for the 3310. Some helper bitmap font editors are available, like http://www.crystalfontz.com/forum/showthread.php?t=3619 to help you write the code for each character. How big are you wanting to go?. The link I showed goes to 10 x 14. But a font like this 10x14 (just look at fonts on this link) is bolder http://www.ageta.hu/pdf/gw64x16C-K610a-03.pdf. But perhaps you want even larger?
Last edited by ScaleRobotics; - 5th April 2010 at 16:56.
Please take a look at this ideea :
-in picture I figure how increase the size of characters ;
-in the code I try to explain how I see the problem.
Suggestions ? Thanks !
Code:' So I define the normal characters : DATA @10,$3E,$51,$49,$45,$3E,_ ';// 0 $00,$42,$7F,$40,$00,_ ';// 1 $42,$61,$51,$49,$46,_ ';// 2 $21,$41,$45,$4B,$31,_ ';// 3 $18,$14,$12,$7F,$10,_ ';// 4 $27,$45,$45,$45,$39,_ ';// 5 $3C,$4A,$49,$49,$30,_ ';// 6 $01,$71,$09,$05,$03,_ ';// 7 $36,$49,$49,$49,$36,_ ';// 8 $06,$49,$49,$29,$1E,_ ';// 9 $08,$08,$3E,$08,$08,_ ';// + $08,$08,$08,$08,$08,_ ';// - ' and display the temperature : '================= setting cursor for display the temperature LcdReg = %10100000 + 22 ' cursor X call PrintCtrlLcd LcdReg = %01000010 ' cursor Y call PrintCtrlLcd '================= now display temperature Char = (temperature dig 3) call PrintChar Char = (temperature dig 2) call PrintChar Char = 14 ' this is decimal point call PrintChar Char = (temperature dig 1) Call PrintChar ' 'here I try to display with BIG font : '=============================================== ' try to define BIG zero : DATA @10,$1F,$1F,$66,$66,$61,_ ';// the 1/4 left-down part of zero $7C,$7C,$03,$03,$43,_ ';// the 1/4 left-up part of zero $43,$33,$33,$7C,$7C,_ ';// the 1/4 right-up part of zero $61,$60,$60,$1F,$1F,_ ';// the 1/4 right-down part of zero ' and display the temperature : '================= setting cursor for display the temperature LcdReg = %10100000 + 22 ' cursor X call PrintCtrlLcd LcdReg = %01000010 ' cursor Y call PrintCtrlLcd '================= now display temperature Char = ?????????? call PrintChar Char = ?????????? call PrintChar Char = ?????????? ' redefine of decimal point call PrintChar Char = ?????????? Call PrintChar
Hey Bill,
I think this might be a version issue for Mpasm, or PBP, but really not sure. I get a nicely compiled result at 2312 words for your version of include file.
I can fit 96 more bytes in RAM, so there is a bit more left, but as you can see, my program is small.
![]()
Last edited by ScaleRobotics; - 12th July 2010 at 06:39.
i am new in pbp i want this schematic code in pbp
and step by step detail this code for learning purpose
plz any body help me
Thanks
Bookmarks