Displaying w0

JPB33

Senior Member
I want to display the incrementing wo as a number on a display. Ive read the info and failed, been going round in circles for ages, hope someone can help.

Thanks

Code:
do
	pause 100
	inc w0 
	serout C.7, n2400, ( 254,1)
	pause 500
	bintoascii w0,b23,b24,b25,b26,b27
	serout C.7, N2400, (254, 128,"b23","b24","b25","b26","b27", "")
	loop
 

nick12ab

Senior Member
No need to put any quotes in the serout command, doing so will just result in the variable names being printed and not the values.
 

marks

Senior Member
Hi JPB33,
and also may depend if your driver is fast enough or supports mixing command and character codes
Code:
pause 100
	
	serout C.7, n2400, ( 254,1)
	pause 500
do
	bintoascii w0,b23,b24,b25,b26,b27
inc w0 	
serout C.7, N2400, (b23,b24,b25,b26,b27)
pause 500
	loop
 
Last edited:
Top