Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

sofiia-tesliuk/Nokia5110LCDriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nokia5110LCDriver

Installing driver

cd gpio_lcd5110
make
sudo insmod gpio_lcd5110.ko
sudo mknod /dev/gpio_lcd5110 c 61 0
sudo chmod a+rw /dev/lcd5110

cd /sys/gpio_lcd5110/gpio_lcd5110
sudo chmod a+rw state_mode
sudo chmod a+rw data_mode 

Usage

// Enable text mode
sudo echo "t" > data_mode
// Enable image mode
sudo echo "i" > data_mode

// Active
sudo echo "a" > state_mode
// Sleep
sudo echo "s" > state_mode

sudo echo "Hello!" > /dev/gpio_lcd5110

Removing driver

sudo rmmod led5110

Interface

cd ../user_interface
g++ -o int interface_main.cpp

Usage:

./int -[m|f] ["m -- message"|"f -- filename"]

About

C driver of Nokia5110LCD for RaspberryPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published