Hello, I've got a sensehat that I would like to interact with and I am having some issues finding the FB device on my RPi. I installed compiletc.tcz and created a basic program to read from the sensors over i2c. I looked at the source code for RTIMULibDrive11 and the datasheets for HTS221 and LPS25H. I've included the source code as an attachment if anyone is interested (very simple but it gets the job done). Now I want to interact with the 8x8 RGB led matrix and looked at the source code for the sense hat on github.com, it is written in python but I was still able to understand it. On line 173 I found this code:
for fb in glob.glob('/sys/class/graphics/fb*'):
I looked for `RPi-Sense FB` in /sys/class/graphics/fb0 and couldn't find it so I realized I needed to enable the rpi-sense overlay in config.txt
I added this to config.txt (under [ALL]):
[ALL]
dtoverlay=rpi-sense
dtdebug=1
I also copied the following kernel modules from
http://tinycorelinux.net/8.x/armv6/releases/RPi/src/kernel/4.4.20-piCore%2B_modules.tar.xz to /lib/modules:
- modules/4.4.20-piCore+/kernel/drivers/mfd/rpisense-core.ko
- modules/4.4.20-piCore+/kernel/drivers/input/joystick/rpisense-js.ko
- modules/4.4.20-piCore+/kernel/drivers/video/fbdev/rpisense-fb.ko
I put the modules in a tcz package and installed it on my system. Not sure how I can see if the rpi-sense overlay is enabled.
Has anyone got an idea on what I have missed? I can't find the FB device on my RPi zero.