C
C
Cyril2017-01-14 23:51:08
linux
Cyril, 2017-01-14 23:51:08

How to create a device in linux (details inside)?

I want to connect the screen from Nokia 5110 to Raspberry Pi 3 and to be able to do this:
echo "hello world" > /dev/screen0
How can I do it? Is there any example of writing something like this to work with some external devices?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vasiliev, 2017-01-15
@argz

To connect a peripheral device, you need to use the appropriate driver. There is
a framebuffer driver for this display in linux staging, you can try to connect it. After connecting, if the kernel is built with the fbdev module, the /dev/tty* device should appear, into which text can be printed. There is also such a lib specifically for the Pi.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question