|
HD44780
0.1.3
|
This is a peripheral driver library for interfacing stm32 microcontrollers with the HD44780 display driver. The implementation uses the stm32 HAL to maximise device compatibility.
This library is meant to be used in projects that employ the stm32 HAL library. The easiest way to include the library in your project is to simply copy HD44780.h to your include directory and HD44780.c to your source directory. The aforementioned files can be downloaded from the releases page.
Before starting to use the library you are going to need to select your target architecture. This is done by defining a corresponding preprocessor symbol. The possible architectures are listed below:
STM32F0STM32F1STM32F2STM32F3STM32F4STM32F7STM32H7STM32G0STM32G4STM32L0STM32L1STM32L4STM32L5STM32WBSTM32WLHere are a couple of ways to define one of these symbols:
One method is to define the chosen symbol globally using the preprocessor settings.
With GCC:
With STM32CubeIDE 1.7:
Project -> Properties -> C/C++ General -> Paths and Symbols -> Symbols -> Add...
If none of the architecture symbols are defined the library will look for the HD44780_config.h file in your include path. This file can be used for defining the symbol for the chosen architecture. A template for this file can be obtained from the releases page.
Documentation for the latest version is available at https://murar8.github.io/stm32-HD44780/latest
If you want to read the documentation for a specific version you can append the version tag to the base url. Example: https://murar8.github.io/stm32-HD44780/v0.1.0
Some common usage scenarios are listed below.
I do not expect to make any money from this project but if you would like to buy me a coffee or something you are welcome to do so :)
Copyright (c) 2021 Lorenzo Murarotto lnzmrr@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.