week9
Serial 1
Serial communication |
code 1
code 2
We divided cstr(potVar) by 4 : "chr(cstr(potVar)\4)", because we got potentiometer value from 0-1023, so if we want to use ASCII code which has data ranged 0-255, we need to adjust our Pot values to those ASCII values. 'chr(13) & chr(10)' means "push 'enter' key--chr(13)" and "make 'New Line' --chr(10)" as following ASCII code. code 3
|