BV4613 and picaxe January 20, 2014 10:22AM |
Registered: 9 years ago Posts: 5 |
Re: BV4613 and picaxe January 20, 2014 11:56AM |
Admin Registered: 11 years ago Posts: 351 |
Re: BV4613 and picaxe January 21, 2014 08:29PM |
Registered: 9 years ago Posts: 5 |
Re: BV4613 and picaxe January 22, 2014 04:00PM |
Registered: 9 years ago Posts: 5 |
Re: BV4613 and picaxe January 23, 2014 10:05AM |
Admin Registered: 11 years ago Posts: 351 |
Re: BV4613 and picaxe January 23, 2014 10:17AM |
Registered: 9 years ago Posts: 5 |
Main: Pause 1000 Hsersetup B9600_4,%00 Hserout 0,(CR) 'establish comms Pause 500 'viewing time Hserout 0,($1b,$5b,$32,$4a) 'CLS Pause 500 'viewing time Hserout 0,($1b,$28,$33) 'big font (size 3) Pause 500 'viewing time Hserout 0,("Send message") 'text Pause 500 'viewing time Hserout 0,(CR) 'carriage return Pause 500 'viewing time 'can use hex or ascii code Hserout 0,( 27 ,91 ,50 ,59 ,50, 72) 'move cursor Pause 500 'viewing time Hserout 0,($1b,$5b,$49) 'invert colours Pause 500 'viewing time Hserout 0,("Message delivered!") 'blue on white text Pause 500 'viewing time Hserout 0,($1b,$5b,$49) 'un-invert colours (same code) Pause 500 'viewing time 'Draw rectangle (esc { x1 x1 , y1 y1 , x2 x2 x2 , y2 y2 R) 'at coordinates (esc { 0 7 , 2 2 , 1 7 0 , 5 5 R) Hserout 0, ($1b,$7b,$30,$37,$2c,$32,$32,$2c,$31,$37,$30,$2c,$35,$35,$52) Pause 1000 'viewing time 'Draw filled rectangle slightly smaller change last character to F 'with ascii code (esc { 1 0 , 2 5 , 1 6 8 , 5 3 F) Hserout 0, ( 27,123, 49, 48, 44, 50, 53, 44, 49, 54, 55, 44, 53, 51, 70) Pause 500 'viewing time
Re: BV4613 and picaxe January 23, 2014 10:20AM |
Registered: 9 years ago Posts: 5 |
pause 1000 Main: Hi2csetup i2cmaster,0x64,i2cslow,i2cbyte pause 1000 HI2cOut ("Before CLS") pause 1000 'Clear screen HI2cOut ($1b) ; esc HI2cOut ($5b) [noparse]; [[/noparse] HI2cOut ($32) ; 2 HI2cOut ($4a) ; J Pause 1000 HI2cOut ($1b,$5b,$3f,$32,$35,$49) 'Hide cursor pause 20 HI2cOut ("After CLS") pause 1000 'Move cursor 'HI2cOut ($1b,$5b,$32,$3b,$31,$35,$48) can use hex or ascii code HI2cOut ( 27 ,91 ,50 ,59 ,49, 53,72) pause 1000 HI2cOut ("After move 2-15") pause 1000 HI2cOut (CR) pause 1000 b1=$2a HI2cOut ("b1 is an asterisk ",b1) ;Write value of variable b1 pause 1000 'Draw rectangle 'Coords (esc { 3 2 , 3 6 , 1 1 1 , 4 5 R) 'HI2cOut ($1b,$7b,$33,$32,$2c,$33,$36,$2c,$31,$31,$31,$2c,$34,$35,$46) HI2cOut ( 27,123, 51, 50, 44, 51, 54, 44, 49, 49, 49, 44, 52, 53, 82) Pause 1000 'Draw filled rectangle HI2cOut ( 27,123, 51, 53, 44, 51, 57, 44, 49, 48, 56, 44, 52, 51, 70) pause 1000 HI2cOut (CR) pause 20 HI2cOut ($1b,$5b,$49) 'invert colours pause 20 HI2cOut (" thats all folks!! ") Pause 20 HI2cOut ($1b,$5b,$49) 'un-invert colours pause 20