ผมประกาศค่านี้ เป็น Gobel
const uint8_t Pixcel1[] U8G_PROGMEM = {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
และมี sub นี้ครับ
void u8g_Tela(const uint8_t s1)
{
u8g.drawBitmapP(32,16,1,8,s1);
}
แล้วจะเรียกใช้แบบนี้คับ
u8g_Tela(Pixcel1);
มัน error อะครับ ต้องประกาศอย่างไรหรอครับ
error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t {aka unsigned char}'
ขอบคุณมากๆนะครับผม
ได้แล้วครับโทดทีครับ
ต้องใช้ const unsigned char* ครับ OK