摘要:
SPI (Serial Peripheral Interface) bussesSPI busses can be described with a node for the SPI master deviceand a set of child nodes for each SPI slave o... 阅读全文
摘要:
#include #include #include #include int main(void){FILE *p=NULL;int i=0;p = fopen("/sys/class/gpio/export","w");fprintf(p,"%d",38);fclose(p);p =fopen(... 阅读全文
摘要:
//example #include #include #include #include #define GPIO_TO_PIN(bank, gpio) (32 * (bank) + (gpio))int main(int argc, char * argv){ int i, n, fd; cha... 阅读全文