help HEXA => dec & ping
fred1456
Posts: 13
hello everybody.
could you tell my how transfom a hexadecimal signal from a ping))) sonar to a decimal value? i don't find it ...
thx
could you tell my how transfom a hexadecimal signal from a ping))) sonar to a decimal value? i don't find it ...
thx
Comments
What are you actually trying to do? Do you want to convert the PULSIN value to some kind of distance measurement or do you want to see the value on the DEBUG window?
If you just want to see the value in the DEBUG window, use the DEC formatter and read the section of the PBasic manual on the DEBUG and SEROUT commands for examples and a description.