With the arrival of Google Assistant in my country, I felt the urge to hook NodeOne to it. But I also felt that NodeOne needs refreshing.
The first version was made almost two years ago. It has PIR sensor mounted or rubber, a board that holds inside magically and a light sensor that is kept in place by a tack. But it is still working without any problems!
We have our little HiD device from RPi but this is only proof of concept. Now we will do some planning and start working on the more advanced and helpful classes.
We have the RPi working as a keyboard. We can send standard codes as keys but I wanted to send mute or play and nothing. This is not good.
Some reading and I know that we can use USB remote gadget. So let’s try.
Today we will make our RPi a slave device connected to PC via USB. And this RPi will be detected as the keyboard.
We need Raspberry Pi Zero or Zero W with the micro USB connector.
I have some plans for USB port and to prepare for some strange failures let’s look into serial TTY.
I was running Doton on a screen but this seems a little lame. There are better ways like via a Systemd as a service.
We almost ported all functionality from GfxLCD into cili. The last one is the draw_text.
The GfxLCD uses Python class as the font description and cili must keep the same functionality. So this time handling Python classes in C.
We have huge memory leaks in cili driver. App crashes in about day of working. A good thing is they manifest only during image draw so let’s get to the bottom of problems and fix them all.
I had to take a long break but I hope everything is back on track and I can resume GfxLCD in C project.
After such a long time, I have no idea what was the plan and what was the next step 😉 I think we will try and run Doton on our new driver to see what is wrong.
So this is a good time to name this project, I call it cili.
Today we will try and draw images from our C lib. This is the next step with the wrapper. Why? Because we will be sending Python Object to C code and use it there.
It is getting weirder 🙂
Source @ GitHub
– GFXLCD AND ILI9325 C DRIVER – PART 3
– GFXLCD AND ILI9325 C DRIVER – PART 2
– GFXLCD AND ILI9325 C DRIVER – PART 1