Category Archives: Raspberry Pi

Extended KeDei tinydrm driver for version 6

After few days of struggle I succeed to extend tinydrm driver to support version 6.0 of the KeDei SPI TFT display. Now you can play with it via /dev/fb1.

I test it only on v.6.0, you can try it on 6+, I think there is chance to work.

Repo is here: https://github.com/mihailstefanov/tinydrm, for those who want to play with it.

Kedei screen

Kedei Screen

After running

sudo fbi -d /dev/fb1 -T 1 -a ./fortnite.jpg

Kedai screen running like /dev/fb1

Kedai screen running like /dev/fb1

Additional information

FREEWING-JP/tinydrm

https://github.com/FREEWING-JP/tinydrm/tree/feature/kedei_35_v50/kedei_35_lcd_v50

KeDei 6.2 SPI TFT Display Test Program

https://github.com/lzto/RaspberryPi_KeDei_35_lcd_v62

Out of tree tinydrm modules

https://github.com/notro/tinydrm/wiki https://github.com/notro/tinydrm

KeDei 3.5 inch 480×320 TFT lcd from ali

https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=124961

Raspberry Pi Display and Buttons

I really liked the next gadget from PiFace, PiFace Display and Control.
Most of the time I use Raspberry Pi connecting to it via ssh, so no display and keyboard. It is a lot handy to have a screen and few buttons in order to interact with the Python code, you play with. So I was wondering if I can make a my own design. In the same time I wanted to be fully compatible with examples and code from PiFace. I did a research and found this article PIFace Control & Display Tear Down using the MCP23S17 (SPI I/O Expander), which was the kickstart of my next project.
Here is the result:

Raspberry Pi Display and Buttons

Raspberry Pi Display and Buttons

Raspberry Pi Display and Buttons

Raspberry Pi Display and Buttons

Namaste!

Raspberry Pi and BLE DEV.N

It was interesting to see if we can use Raspberry Pi to connect to the BLE DEV.N board. Here is initial hardware setup BLE DEV.N board  + Raspberry Pi + CSR 4.0 dongle:

Raspberry Pi with BLE DEV.N

Raspberry Pi with BLE DEV.N

Bluetooth stack is updated to the latest 5.7.

Raspberry Pi with latest Bluez 5.7 stack

Raspberry Pi with latest Bluez 5.7 stack

Scanning returns the board name (LED). Currently dev board is flashed with the LED example.

Finding the LED BLE DEV.N board

Finding the LED BLE DEV.N board

Connecting to discovered tag LED. Here is interesting to mention that I needed to use –random option, because of random generated addresses (no need if you are connecting to the TI SensorTag).

Connecting to discovered tag LED

Connecting to discovered tag LED

Discovering of the characteristics

Discovering LED board characteristics

Discovering LED board characteristics

It is a Happy day of coding!