Thông báo

Collapse
No announcement yet.

giúp em với code CCS

Collapse
X
 
  • Lọc
  • Giờ
  • Show
Clear All
new posts

  • giúp em với code CCS

    #include <16f877a.h>
    #FUSES NOWDT, HS, NOPUT, NOPROTECT, NODEBUG, NOBROWNOUT, NOLVP, NOCPD, NOWRT
    #use delay(clock=12000000)
    //khai bao mang
    int const quet[]={0b11111110,0b11111101,0b11111011,0b11110111,0b11 101111,0b11011111,0b10111111,0b01111111};
    int const mang0[]={0,0,0,0,0,0,0,0,
    0,0,0,255,36,36,228,164,36,
    0,0,0,0,0,142,81,65,193,81,78,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,128,190,72,72,72,72,136,
    0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,156,162,130,186,34,28,
    0,0,0,0,0,145,83,85,89,81,145,
    0,0,0,0,128,145,81,95,81,81,145,
    0,0,0,0,152,164,132,152,160,36,24,
    0,0,0,0,0,2,2,2,2,2,94,
    0,0,0,0,0,145,83,85,89,81,145,
    0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0
    };

    Đoạn code trong cái mang(0) em không hiểu

  • #2
    Nguyên văn bởi phapdp Xem bài viết
    #include <16f877a.h>
    #FUSES NOWDT, HS, NOPUT, NOPROTECT, NODEBUG, NOBROWNOUT, NOLVP, NOCPD, NOWRT
    #use delay(clock=12000000)
    //khai bao mang
    int const quet[]={0b11111110,0b11111101,0b11111011,0b11110111,0b11 101111,0b11011111,0b10111111,0b01111111};


    int const mang0[]={0,0,0,0,0,0,0,0,
    0,0,0,255,36,36,228,164,36,
    0,0,0,0,0,142,81,65,193,81,78,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,128,190,72,72,72,72,136,
    0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,156,162,130,186,34,28,
    0,0,0,0,0,145,83,85,89,81,145,
    0,0,0,0,128,145,81,95,81,81,145,
    0,0,0,0,152,164,132,152,160,36,24,
    0,0,0,0,0,2,2,2,2,2,94,
    0,0,0,0,0,145,83,85,89,81,145,
    0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0
    };

    Đoạn code trong cái mang(0) em không hiểu
    Nó là các giá trị đã được tính theo hệ 10 thôi.
    Ví dụ 255 có thể viết là :
    - 255
    - 0xFF
    - 0b11111111

    Chỉ là cách diễn tả khác khôi.

    Comment

    Về tác giả

    Collapse

    phapdp Tìm hiểu thêm về phapdp

    Bài viết mới nhất

    Collapse

    Đang tải...
    X