[FONT=Times New Roman][FONT=Times New Roman][SIZE=3]#com 1[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]#picaxe 28X1[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]#terminal off[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]setfreq em16[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]HI2CSETUP I2CMASTER, %10100000, 9, i2cword 'replaced i2cfast_16 with 9[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]'gosub check_if_display_is_ready[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]gosub check_display_status[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]HI2COUT 1,(1)'clear display[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]scratchpad_out_page_directed: 'each line sent to proper loccation[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]'gosub check_if_display_is_ready[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]gosub check_display_status[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]ptr = 0 [/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]HI2COUT 1,(128,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,191,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,147,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,211,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptr)[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]return[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]scratchpad_out_full_page:[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]gosub check_if_display_is_ready [/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]'gosub check_display_status [/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]ptr = 0[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]HI2COUT 1,(128,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptr) [/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]return[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]check_display_status:[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]ptr = 127[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]hi2cin 0,(@ptr)[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]if @ptr = 0 then check_display_status[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]return[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]check_if_display_is_ready:[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]if pin1 = 0 then check_if_display_is_ready[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]return[/SIZE][/FONT]
[/FONT]