New Code Syntax Highlighter!By Admin, on Thu, 26 Nov 2009 12:45 amGood News! I have just made a simple Syntax highlighter, so this means I can post code onto my site and makes it easier for people to read through it! here's an example: SetPorts
bsf STATUS, RP0 ;select bank 1
clrf TRISA
clrf TRISB
bsf PS2_TRIS_CLK
bsf PS2_TRIS_DATA
bcf STATUS, RP0 ;select bank 0
call Delay20 ;wait for LCD to settle
;call Delay5
call LCD_Init ;setup LCD
clrf count ;set counter register to zero
clrf PORTA
clrf PORTB
call Delay5
Main
call Set_Busy
call LCD_Clr
movlw 0x00 ;goto first line and goto column 1
call LCD_Line1W
movlw 0x00 ;send preset message No.1
call SendMessage
call PS2_init
call Clr_Busy
Loop
incf myCounter,1
call Delay5
;movlw 0x00
;call LCD_Line2W
;movfw myCounter
movlw d'0'
call LCD_Line2W
call PS2_update
movfw PS2_XY
andlw 0x0F
movwf PS2_temp
movfw PS2_XY2
andlw 0x10
iorwf PS2_temp,W
call LCD_HEX
movfw PS2_X
call LCD_HEX
movlw d'5'
call LCD_Line2W
swapf PS2_XY,W
andlw 0x0F
movwf PS2_temp
rrf PS2_XY2,W
andlw 0x10
iorwf PS2_temp,W
call LCD_HEX
movfw PS2_Y
call LCD_HEX
movlw d'10'
call LCD_Line2W
movfw PS2_pressure
call LCD_HEX
;call Delay255; call a 255 milisecond delay
;call Delay255;
;call Toggle_LED
goto Loop
Its still being worked on but hopefully soon I will have a 'code snip-its' section on my site showing of my code Cheers 1 Comments Interfacing a Touchpad via PS/2 on a PIC16F628ABy Admin, on Sun, 22 Nov 2009 10:49 pmHey everyone, I have just added a new project, it is interfacing a touchpad with a PIC16F628A via PS/2
Cheers RSS 2.0 is now supported!By Admin, on Sat, 21 Nov 2009 11:18 am
So go ahead and subscribe to it so you can have the latest updates to this site Cheers New De-soldering Tutorial posted on Instructables!By Admin, on Thu, 19 Nov 2009 10:42 pmHey and welcome everybody, I have just posted a new tutorial on Instructables on how to desolder surface mount ICs. Cheers New Image scaler scriptBy Admin, on Tue, 10 Nov 2009 9:06 amThanks to ridgerunner From DevNetWork.net, he came up with a regular expression that will look up resized images on my site and replace them with a new image that gets rescaled to that size to help with loading time and makes the pictures look that little bit better. If you want to find more information on this, look here Thanks Ridgerunner! Roman |

