ครับ อ. สันติ ผมส่ง text ได้แล้วทีนี้อยากทราบว่า
ผมเก็บค่าจาก wifi มา ไว้ที่ char msg[ ];
ถ้าผมจะต้องการให้ ค่าใน msg[ ] สามารถเลือกแสดงผลได้
โดยชี้ไปที่ตัวเก็บข้อมูลที่ได้สร้างไว้ หากตรงกับชนิดใด
ให้นำมาแสดง ควรจะเขียนอย่างไรครับ?
char msg[];
if(data > 0) {
Serial.write(msg);
if(Serial.write(msg)) {
matrix.print(msg);
// Bitmap(x, y, *bitmap, w, h, color);
}
}
Bitmap(x, y, const uint8_t *bitmap, int16_t w, int16_t h,
uint16_t color) {
int16_t i, j, byteWidth = (w + 7) / 8;
for(j=0; j<h; j++) {
for(i=0; i<w; i++ ) {
if(pgm_read_byte(bitmap + j * byteWidth + i / 8) & (128 >> (i & 7))) {
drawPixel(x+i, y+j, color);
}
}
}
}