2014-12-23から1日間の記事一覧
定周期で照度センサーからの値をDAC経由で読み取りファイルに保存していく。 // spi_photo_register.c #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <string.h> #include <time.h> #include <sys/time.h> #define CS 0 #define CLOCK_SPEED 2000000 #define SAMPLING_INTERVAL 60 #define PR</sys/time.h></time.h></string.h></fcntl.h></stdlib.h></stdio.h>…