zephyr/samples/drivers/lcd_hd44780
Stephan Gatzka c4c1d92cee drivers: gpio: Use BIT(n) macro to define GPIO constants
This change would also solve that according to the C11 standard,
section 6.5, paragraph 4, the usage of bitwise operators on
signed integers is implementation defined.

Signed-off-by: Stephan Gatzka <stephan.gatzka@gmail.com>
2025-06-03 20:32:33 +02:00
..
src
CMakeLists.txt
prj.conf
README.rst
sample.yaml

.. zephyr:code-sample:: lcd-hd44780
   :name: HD44780 LCD controller
   :relevant-api: gpio_interface

   Control an HD44780-based LCD display using GPIO pins.

Overview
********
Display text strings on parallel interfacing HD44780 based
generic LCD controller using GPIO pins to interface with
Arduino Due (SAM3).

Building and Running
********************

This project can be built and executed on as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/lcd_hd44780
   :host-os: unix
   :board: arduino_due
   :goals: flash
   :compact:

Sample Output
=============

.. code-block:: console

    LCD Init
    Page 1: message
    Page 2: message
    Page 3: message

Display output
==============

.. code-block:: console

    ********************
    Arduino Due
    yalpsiD DCL 4x02
    ********************

.. code-block:: console

    -------------------
    Zephyr Rocks!
    My super RTOS
    -------------------

.. code-block:: console

    --------------------
    --------HOME--------
    I am home!