본문 바로가기

[Kernel Porting] Dot matrix 표정다른 스마일 2초반복 작업 환경-메인 OS : Windows 8.1K(Intel Core i5-4590)-작업 OS : Ubuntu 14.04.5 LTS 64bit(VirtualBox)-장 비 명 : Hybus-Smart4412 dot6.c#include #include #include #define dot "/dev/dot" int main(){int dot_d,i;unsigned char zero[2][8]={{0x00, 0x42, 0xA5, 0xA5, 0x00, 0x42, 0x3C, 0x00},{0x00, 0x00, 0xE7, 0x00, 0x00, 0x3C, 0x42, 0x00}};dot_d = open(dot, O_RDWR);if(dot_d 속도를 115200으로 설정- Hybus-Smart4412 장비 부팅- 메뉴 .. 더보기
[Kernel Porting] Dot matrix 슬픈 스마일 그려보기 작업 환경-메인 OS : Windows 8.1K(Intel Core i5-4590)-작업 OS : Ubuntu 14.04.5 LTS 64bit(VirtualBox)-장 비 명 : Hybus-Smart4412 dot5.c#include#include#include #define dot "/dev/dot" int main(){int dot_d , i;unsigned char smile[8] = {0x7E , 0x81 , 0xDB , 0xA5 , 0x81 , 0x99 , 0xA5 , 0x7E};dot_d = open(dot , O_RDWR);if(dot_d 시리얼 포트 -> 속도를 115200으로 설정- Hybus-Smart4412 장비 부팅- 메뉴 -> 전송 -> ZMODEM -> 보내기 에서 실행파일 선택.. 더보기
[Kernel Porting] Dot matrix 스마일 그려보기 작업 환경-메인 OS : Windows 8.1K(Intel Core i5-4590)-작업 OS : Ubuntu 14.04.5 LTS 64bit(VirtualBox)-장 비 명 : Hybus-Smart4412 dot4.c#include#include#include #define dot "/dev/dot" int main(){int dot_d , i;unsigned char smile[8] = {0x7E , 0x81 , 0xA5 , 0xDB , 0x81 , 0xA5 , 0x99 , 0x7E};dot_d = open(dot , O_RDWR);if(dot_d 시리얼 포트 -> 속도를 115200으로 설정- Hybus-Smart4412 장비 부팅- 메뉴 -> 전송 -> ZMODEM -> 보내기 에서 실행파일 선택.. 더보기
[Kernel Porting] Dot matrix와 tactsw를 이용한 사칙연산 작업 환경-메인 OS : Windows 8.1K(Intel Core i5-4590)-작업 OS : Ubuntu 14.04.5 LTS 64bit(VirtualBox)-장 비 명 : Hybus-Smart4412 dot3.c#include#include#include#include#include#include#include#include #define tact_d "/dev/tactsw"#define dot "/dev/dot" void showcalc(int *num, char op, int *i);void result(int res); int main(){int tact, i=0;unsigned char c;int num[2];char op;tact=open(tact_d, O_RDWR); if(tact 시리.. 더보기