Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

This module provides a two-line LCD display with 16 characters per line.



Panel
borderColor#FFFFFF
bgColor#a7d5c2
titleColorblack
titleBGColor#1cae8d
titleManuals

Image Added

Usage Zynq7000

To use the LCD display with the

zynq7000, connect

Zynq7000 together with https://flink-project.ch/, you need a GPIO subdevice within flink. Connect it in the following way:

Zynq7000
Microzed BoardDisplay
gpio[0] ... gpio [7]D0 ... D7
gpio[8]RS
gpio[9]E
gpio[10]R/W

There are two drivers available. One for

Java in combination with deep and one for

Python when using a Linux operating system and one for Java in combination with deep

Python driver

Python Example

Codeblock
languagepy
firstline1
titleLCDExample.py
linenumberstrue
import driver
import time

# init LCD

disp = driver.HD44780U()
disp.init(2)

# write to display
a = 87103
disp.writeString(str(a))
disp.setCursor(1,5)
disp.writeChar('A')
disp.writeChar('x')
time.sleep(3)

# clear display
disp.clearDisplay()

# turn on display and turn off blinking and cursor
disp.onOff(True, False, False)

Java Example

Image Removed

Codeblock
languagejava
firstline1
titleLCDExample.java
linenumberstrue
import org.deepjava.runtime.zynq7000.driver.HD44780U;


public class CharLCDTest {
	
	static HD44780U disp;
	
	public static void dispOff() {
		disp.onOff(false, true, true);
	}

	public static void dispOn() {
		disp.onOff(true, true, true);
	}

	public static void writeT() {
		disp.writeChar('T');
	}

	public static void writeInt() {
		disp.writeInt(8635, 6);
	}

	public static void writeLn() {
		disp.writeLn();
	}

	public static void clearDisplay() {
		disp.clearDisplay();
	}

	public static void setCursor() {
		disp.setCursor(1, 4);
	}

	static { 
		disp = HD44780U.getInstance();
		disp.init(2);
	}

}