Serial Terminal Issue

Andrei IRL

Senior Member
Hi everyone.

I am trying to run one picaxe to monitor the action of another using simple program.

I am having some difficulties where Serial Terminal only is displaying [00] many times over.

Any idea what might be causing it?

Thanks very much in advance.

Andrei.
Code:
#picaxe 08m2
setfreq 4
b0=0
main:	
  	if pin1=1 then addone
    	
goto main

addone:
	b0=b0+1
		
sertxd("number if false triggers is ",#b0,13,10)
#terminal 4800
	
debounce: 
pause 100
if pin1=1 then debounce

goto main
 

Buzby

Senior Member
This is the sort of problem that the compiler should give a warning ( not an error !!! ) about.

The usual syntax is m8, k31, m64 etc. Without the letter the digit is still a valid construct, but the result is not as expected.

Now it may be that the author intends to use just a digit, but as this is not likely, the compiler should warn that something non-standard has been found, and let the author decide what to do about it.
 
Top