いろいろ、注意
- UNOでの予定は、未定
プログラム
オンラインコンパイラ paiza
#include <iostream>
using namespace std;
void font_data_out(unsigned char *font){
for(int i=0;i<8;i++){
printf("[%02x]\n",font[i]);
}//for
printf("\n");
}//font_data_out
int main(void){
// Your code here!
unsigned char font[] = {
0b10000000,
0b01000000,
0b00100000,
0b00010000,
0b00001000,
0b00000100,
0b00000010,
0b00000001
};
int c;
c = font[0];
font[0] = font[7];
font[7] = c;
c = font[1];
font[1] = font[6];
font[6] = c;
c = font[2];
font[2] = font[5];
font[5] = c;
c = font[3];
font[3] = font[4];
font[4] = c;
font_data_out(font);
}
[01]
[02]
[04]
[08]
[10]
[20]
[40]
[80]