Sie zeigen eine alte Version dieser Seite an. Zeigen Sie die aktuelle Version an.

Unterschiede anzeigen Seitenhistorie anzeigen

« Vorherige Version anzeigen Version 5 Nächste Version anzeigen »

A special circuit pushes the current through the emitting diode up to 0.5A for the duration of a pulse of approximately 100µs. 


Circuit Diagram
  • Circuit for using with Python 
  • Circuit for using with Java     
Data Sheet


Usage Zynq7000

To use the module with the Zynq7000 together with https://flink-project.ch/, you need a Reflective Photoelectric Sensor subdevice within flink. Connect it in the following way:

Microzed BoardModule
L14Trig
N16A0
L15A1
ADC7476Out

There are two drivers available. One for Python when using a Linux operating system and one for Java in combination with deep

Python Example

LCDExample.py
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

LCDExample.java
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);
	}

}



  • Keine Stichwörter