void setup() {
Serial.begin(115200);
for(int b = 128; b < 256; b++) {
Serial.print((char)b);
Serial.print(" ");
Serial.print((char)b, DEC);
Serial.print(" ");
Serial.println(b, DEC);
}
}
const char line[] = "+---+------+-----+";
const char gap[] = " ";
void setup() {
Serial.begin(115200);
Serial.print(line);
Serial.print(gap);
Serial.print(line);
Serial.print(gap);
Serial.println(line);
for(int b = 128; b < 171; b++) {
for(int i = 0; i < 87; i+=43) {
if((b + i) < 256) {
showValue(b + i);
Serial.print(gap);
}
}
Serial.println();
}
}
void showValue(int b){
Serial.print("| ");
Serial.print((char)b);
switch (b) {
case 128 ... 156:
Serial.print(" | ");
break;
case 157 ... 246:
Serial.print(" | ");
break;
default:
Serial.print(" | ");
break;
}
Serial.print((char)b, DEC);
Serial.print(" | ");
Serial.print(b, DEC);
Serial.print("|");
}