-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,082 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,3 +55,5 @@ build/ | |
.vscode/targets.log | ||
.vscode/configurationCache.log | ||
.vscode/dryrun.log | ||
|
||
test/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
{ | ||
"makefile.extensionOutputFolder": "./.vscode" | ||
"makefile.extensionOutputFolder": "./.vscode", | ||
"files.associations": { | ||
"kernel.h": "c", | ||
"module.h": "c", | ||
"types.h": "c", | ||
"posix_types.h": "c", | ||
"type_traits": "c" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"tasks": [ | ||
{ | ||
"type": "cppbuild", | ||
"label": "C/C++: gcc-10 build active file", | ||
"command": "/usr/bin/gcc-10", | ||
"args": [ | ||
"-fdiagnostics-color=always", | ||
"-g", | ||
"${file}", | ||
"-o", | ||
"${fileDirname}/${fileBasenameNoExtension}" | ||
], | ||
"options": { | ||
"cwd": "${fileDirname}" | ||
}, | ||
"problemMatcher": [ | ||
"$gcc" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"detail": "Task generated by Debugger." | ||
} | ||
], | ||
"version": "2.0.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,32 @@ | ||
# happy-gardenpi-driver | ||
Driver to get access to hardware resources | ||
Simple driver for LCD 16x2 management with chip HITACHI HD44780U compatible. | ||
|
||
At the moment, only the 4-bit configuration is tested. | ||
|
||
To compile the module: | ||
``` | ||
git clone https://github.com/HiHappyGarden/hhg-lcd-16x2-HD44780U.git | ||
cd hhg-lcd-16x2-HD44780U | ||
sudo make | ||
``` | ||
|
||
To install the module: | ||
``` | ||
sudo insmod hhg_lcd.ko gpio_rs=26 gpio_en=19 gpio_db4=13 gpio_db5=6 gpio_db6=5 gpio_db7=11 | ||
``` | ||
gpio_rs=x gpio_en=x gpio_db4=x gpio_db5=x gpio_db6=x gpio_db7=x correspond to the pins on the LCD as reported in the documentation linked below. | ||
|
||
The above configuration has been tested on a Raspberry Pi 4. | ||
|
||
To remove the module: | ||
``` | ||
sudo rmmod hhg_lcd | ||
``` | ||
To test: | ||
``` | ||
echo hello_world > /dev/hhg_lcd | ||
``` | ||
|
||
## Documentation reference | ||
* [HITACHI HD44780U](https://www.sparkfun.com/datasheets/LCD/HD44780.pdf) | ||
|
Oops, something went wrong.