Hi,
Never used one of those and I don't quite understand what "nothing happens" actually means. Are you saying that you have data on the screen but when executing the Clear Screen command the screen does not clear?
Anyway, the PBP equivalent of the following Arduino code
Code:
Serial.write(0x76); // Clear display command, resets cursor
Serial.write(0x01); // Hex value for 1, will display '1'
Serial.write('2'); // ASCII value for '2', will display '2'
Serial.write(0x0A); // Hex value for 10, will display 'A'
Serial.write('B'); // ASCII value for 'B', will display 'b'
would be something like:
Code:
SEROUT2 PortB.3, 84, [$76] 'Clear the display
SEROUT2 PortB.3, 84, [$01, "2", $0A, "B"] ' Display 12AB
What if you try:
Code:
For i = 0 to 1000
SEROUT2 PortB.3, 84, [$76, DEC4 i]
PAUSE 1000
NEXT
/Henrik.
Bookmarks