私はCを初めて使用し、このコードの平和の中で2つのことを実行しようとしています。
- 以下の&0xfeと&0x01の目的は何ですか?
- __u16明らかにこれは変数ですが、どのタイプで何と呼ばれていますか?
前もって感謝します!
static __u16 smile_bmp[] = {0x3C, 0x42, 0x95, 0xA1, 0xA1, 0x95, 0x42, 0x3C};
displayImage(smile_bmp,res, daddress, file);
int displayImage(__u16 bmp[], int res, int daddress, int file)
{
int i;
for(i=0; i<8; i++)
{
block[i] = (bmp[i]&0xfe) >>1 | (bmp[i]&0x01) << 7;
}
res = i2c_smbus_write_i2c_block_data(file, daddress, 16,
(__u8 *)block);
sleep(1);
}