[Kernel Porting-9] H-Smart4412 Dot Matrix 작동하기
작업 환경 -메인 OS : Windows 8.1K(Intel Core i5-4590) -작업 OS : Ubuntu 14.04 64bit(VirtualBox) -장 비 명 : H-Smart4412 1. dot.c - dot matrix 점멸하기 #include #include #include #define dot "/dev/dot" int main() { int dot_d, i; unsigned char c[8] = {0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00}; if((dot_d = open(dot, O_RDWR)) < 0) { printf("Can't Open\n"); exit(0); } write(dot_d,&c,sizeof(c)); sleep(1); close(dot_d..
2016. 12. 26.