Raspberry Pi as USB gadget – part 2

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.

(more…)

Advertisements

GFXLCD AND ILIs – PART 4 images in C

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

(more…)

GfxLCD and ILI9486 C driver – part 3

This time we will add an ILI9486 via SPI support to our C code. And while doing it we will refactor structure and clean up the code (or do more mess :P).
I was thinking that C wrapper should be part of GfxLCD package but maybe it is better to create it as a separate module? We will see but this time the code is available @GitHub.

GFXLCD AND ILI9325 C DRIVER – PART 2
GFXLCD AND ILI9325 C DRIVER – PART 1

(more…)

GfxLCD and ILI9325 C driver – part 2

This time we will work with drawing functions. Displaying pixel is easy but next, we have a line, circle and arc. I wonder how hard or easy moving functions from Python to C gonna be.

In Python implementation of GfxLCD, we use @property to access width, height or set colours. We need to do same with C implementation. I see two ways, one we will use Python class that would translate property to function call in C or maybe we can use some ability of Python-C wrapper.

GfxLCD and ILI9325 C driver – part 1

(more…)