I'm not able to successfully capture a still image on the RPi (haven't attempted video yet). Code compiles fine and binary runs but silently hangs without generating an image. Invocation looks like this:
pi@pi2 ~/LeptonModule/raspberrypi_capture $ sudo ./a.out
spi mode: 0
bits per word: 8
max speed: 16000000 Hz (16000 KHz)
And that's all she wrote. Running it through strace it generates an endless string of unvarying ioctl messages like this:
ioctl(3, 0x40206b00, 0xbe96a658) = 164
This is on a vanilla Raspbian install. SPI and i2c are enabled and lsmod shows them loaded. Output of i2cdetect looks like this:
pi@pi2 ~/LeptonModule/raspberrypi_capture $ sudo i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- 2a -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
This is all on an early 256MB Model B. Haven't yet tried it on a B+. It would help if I understood what strace was telling me about that ioctl call, but I don't :)
Thanks,
Craig.