window tests

This commit is contained in:
Simon
2025-04-25 18:03:20 +02:00
parent 5ae907ca5a
commit 2e81a8b419
2 changed files with 36 additions and 26 deletions

View File

@@ -78,15 +78,15 @@ void SerialStream::reset() {
}
void SerialStream::setPos(int x, int y) {
//char out[] = {0x1b, '[', 0, 0, ';', 0, 0, 'H', 0};
*this << 0x1b;
*this << '[';
*this << dec << x;
*this << ';' << y << 'H' << endl;
flush();
//itoa(x, &out[2], 10);
//itoa(y, &out[5], 10);
//print( out , strlen(out));
char out[] = {0x1b, '[', 0, 0, ';', 0, 0, 'H', 0};
//*this << 0x1b;
//*this << '[';
//*this << dec << x;
//*this << ';' << y << 'H' << endl;
//flush();
itoa(x, &out[2], 10);
itoa(y, &out[5], 10);
print( out , strlen(out));
}
void SerialStream::print(char* str, int length) {