<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://miosix.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Example%3A_HD44780</id>
	<title>Example: HD44780 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://miosix.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Example%3A_HD44780"/>
	<link rel="alternate" type="text/html" href="https://miosix.org/wiki/index.php?title=Example:_HD44780&amp;action=history"/>
	<updated>2026-05-17T10:02:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://miosix.org/wiki/index.php?title=Example:_HD44780&amp;diff=115&amp;oldid=prev</id>
		<title>Fede.tft: Created page with &quot;=== HD44780 Example === This example file can be found in &#039;&#039;miosix/_examples/hd44780/hd44780.cpp&#039;&#039; &lt;source lang=&quot;cpp&quot;&gt;  #include &lt;miosix.h&gt; #include &lt;util/lcd44780.h&gt;  using n...&quot;</title>
		<link rel="alternate" type="text/html" href="https://miosix.org/wiki/index.php?title=Example:_HD44780&amp;diff=115&amp;oldid=prev"/>
		<updated>2014-04-25T11:10:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== HD44780 Example === This example file can be found in &amp;#039;&amp;#039;miosix/_examples/hd44780/hd44780.cpp&amp;#039;&amp;#039; &amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;  #include &amp;lt;miosix.h&amp;gt; #include &amp;lt;util/lcd44780.h&amp;gt;  using n...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== HD44780 Example ===&lt;br /&gt;
This example file can be found in &amp;#039;&amp;#039;miosix/_examples/hd44780/hd44780.cpp&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;miosix.h&amp;gt;&lt;br /&gt;
#include &amp;lt;util/lcd44780.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace miosix;&lt;br /&gt;
&lt;br /&gt;
#ifndef _BOARD_STM32F4DISCOVERY&lt;br /&gt;
#warning &amp;quot;You may need to choose different GPIOs that are free in your board&amp;quot;&lt;br /&gt;
#endif&lt;br /&gt;
&lt;br /&gt;
typedef Gpio&amp;lt;GPIOB_BASE,12&amp;gt; d4;&lt;br /&gt;
typedef Gpio&amp;lt;GPIOB_BASE,13&amp;gt; d5;&lt;br /&gt;
typedef Gpio&amp;lt;GPIOB_BASE,14&amp;gt; d6;&lt;br /&gt;
typedef Gpio&amp;lt;GPIOB_BASE,15&amp;gt; d7;&lt;br /&gt;
typedef Gpio&amp;lt;GPIOC_BASE,1&amp;gt; rs;&lt;br /&gt;
typedef Gpio&amp;lt;GPIOC_BASE,2&amp;gt; e;&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
    //First 6 parameters are GPIOs, then there are the number of lines&lt;br /&gt;
    //of the display, and number of characters per line&lt;br /&gt;
    Lcd44780 display(rs::getPin(),e::getPin(),d4::getPin(),&lt;br /&gt;
                     d5::getPin(),d6::getPin(),d7::getPin(),2,16);&lt;br /&gt;
    display.clear();&lt;br /&gt;
    display.go(0,0);&lt;br /&gt;
    display.printf(&amp;quot;Miosix + HD44780&amp;quot;);&lt;br /&gt;
    for(int i=0;;i++)&lt;br /&gt;
    {&lt;br /&gt;
        Thread::sleep(1000);&lt;br /&gt;
        display.go(0,1);&lt;br /&gt;
        display.printf(&amp;quot;i=%04d&amp;quot;,i);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Examples]]&lt;/div&gt;</summary>
		<author><name>Fede.tft</name></author>
	</entry>
</feed>