zephyr/samples/drivers/lcd_hd44780
Benjamin Cabé f6a4217a88 doc: driver: samples: Update driver samples to use new Sphinx extension
Migrated existing driver samples to use the new code-sample directive
and role.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-22 09:21:43 +02:00
..
src samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
CMakeLists.txt cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
prj.conf
README.rst doc: driver: samples: Update driver samples to use new Sphinx extension 2023-09-22 09:21:43 +02:00
sample.yaml sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00

.. 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!