?? test_iic_led.c
字號(hào):
#include <unistd.h>#include <linux/fs.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdio.h>#define LED_SLAVE_ADD 0x70int main(){ int fd = open("/dev/led",O_RDWR); //can read and write char null_buf[5]={-1,-1,-1,-1,-1}; if (fd == -1) { perror("can't open device led_board!"); exit(1); } while(1) { write(fd,null_buf,5); sleep(1); } close(fd);}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -