Hardware Reference
In-Depth Information
Figure 5-3. gnuplot waveform of an IR signal
If running gnuplot doesn't pop up a window, you may need to set the DISPLAY
variable, or run xhost on the X-Window server machine. If you are using the Raspberry Pi
desktop, this should not be necessary.
The following xhost command enables anyone to create a window on your
X-Window server:
# xhost +
The source code for the irdecode program is listed here:
1 /
∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗
2
irdecode.c : Read IR remote control on GPIO 17 (GEN0)
3
/
∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <fcntl.h>
7 #include <unistd.h>
8 #include <string.h>
9 #include <errno.h>
10 #include <signal.h>
11 #include <setjmp.h>
12 #include <assert.h>
13 #include <sys/time.h>
 
Search WWH ::




Custom Search