Do you mean how do you display 4 digits on an 8x8 display without scrolling? That I don't think you can do and still be able to read it.
Maybe I just don't understand the question![]()
Do you mean how do you display 4 digits on an 8x8 display without scrolling? That I don't think you can do and still be able to read it.
Maybe I just don't understand the question![]()
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Sorry for my poor english...
So, If set tens hour : on matrix appears (without scrolling) tens hour digit only.
If set hour : on matrix appears (without scrolling) hour digit only.
etc, etc.
Otherwise I can't setting the clock, because I don't see what happens ...
I DID IT !
Full working () version of scroll-thermo-clock, using PIC16F877A. With buttons for setting hours/minutes !
Enjoy !
LE : The answer on my previous question:
Code:portb=0 portd=0 pause 1 FOR counter = 0 TO 4 READ oraa*5+counter,leddata [counter] NEXT PORTB=%11111111 PORTD = 1 FOR counter = 0 TO 4 PORTB = leddata [counter] PORTD = PORTD * 2 leddata [counter] = leddata [counter+1] NEXT
Last edited by fratello; - 21st October 2011 at 14:35.
Awesome!!!!!!!!
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Bug of setting hours (23-->0) solved :
andCode:' Decrement Units Hours ' --------------- If CounterC=1 then if setdechour=2 then IF SetHour=0 THEN SetHour= 3 else SetHour=SetHour-1 Endif else if sethour=0 then sethour=9 else sethour=sethour-1 endif endif endif
This is it ! Best regards !Code:' Increment Units Hours ' --------------- If CounterC=1 then if SetDecHour=2 then if SetHour=3 then SetHour=0 else SetHour=SetHour+1 endif else if SetHour=9 then SetHour=0 else SetHour=SetHour+1 endif Endif endif
Last edited by fratello; - 21st October 2011 at 19:57.
Just connect RD7 to matrix and having 8 columns instead 7. No software update required.
![]()
Soft update : if hour < 10 then not show first 0.
Code:if oraa = 0 then FOR counter = 0 TO 4 leddata [counter+41] = %11111111 next else FOR counter = 0 TO 4 READ oraa*5+counter,leddata [counter+41] 'stores tens hours digit in leddata locations NEXT endif
I use 4k7 pullup resistors on the I2C bus, as i read somewhere that its a bit fussy with 10K....dont know how true this is
Some of my projects: http://www.youtube.com/user/wellyb00t
Now I intend to use two 5x7 led matrix, since some ports of PIC (16F877A) are free...
Please, I need help : how can making scroll in this case ?
Note : PortB are lines (7) ; PortC are columns from 0 to 7 ; PortD are columns from 8 to 15.
Last edited by fratello; - 26th October 2011 at 19:11.
I found a way...but I think it's not the BETTER way.
LED's on column 7 (PortD 0) are, sometimes, on ... What @##%$@ is this ?Code:' ' Display RTC & temp. ' ----------- LOOPing: FOR scroll = 0 TO 70 FOR scan = 0 TO 7 PORTB=%11111111 PAUSE 1 PORTc = 1 PORTd = 1 FOR counter = 0 TO 15 PORTB = leddata [counter] pause 1 if counter > 7 then PORTD = PORTD * 2 else portc = portc * 2 endif NEXT NEXT FOR counter = 0 TO 70 leddata [counter] = leddata [counter+1] NEXT NEXT
Thanks for making this an article!
http://www.picbasic.co.uk/forum/cont...ng-thermometer
Dave
Always wear safety glasses while programming.
My first working variant of scroll-thermo-clock :
Used : 16F877A, DS1307, home-made LED's matrix (7x7) and DS18B20 (missing in video, don't have anyone).
Different code from previous example (because of my custom matrix). Enjoy !
There was a problem with the web site when the article was first published. It appears to be fixed now.
Thanks Dan for re-posting the article.
http://www.picbasic.co.uk/forum/cont...ng-thermometer
Dave
Always wear safety glasses while programming.
X1=32768 KHz (see app note for DS1307) ; X2=4MHz (see second line of program file).
thanks lot for the fast reply n giving all instructions to build this without hiding..
by the way ur final video shows 0.0 c because missing of thermo saensor??
can u upload a new video with full functionality..?
reg
krish69
Bookmarks