1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

8x8上下逆転

Last updated at Posted at 2025-05-09

いろいろ、注意

  • 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]

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?