the lib has already a ready function named _gRead_data
just call it and it returns the data in R1
simplest is to copy the _clear_graph routine to a new one and instead of writing data , calling the _gread_data
so this code :
CLr r24
rcall _GWrite_data ; write 0
would be :
call _gread_data
;do someting with value of r1
for example :
mov r24,r1
call _sendchar0 ; send to serial port
↧