Skip to content

ViSi-Genie Magic: Keyboard and LED Digits Demo with a Host

Introduction

To understand this codebase example more quickly, read and understand first the codebase example 4D-CD-00025 ViSi-Genie Magic Keyboard and LED Digits Demo. 4D-CD-00025 ViSi-Genie Magic Keyboard and LED Digits Demo demonstrates how to display large signed integers (up to 10 digits) in decimal using the Magic Keyboard and Color Picker Event object and the Magic Code object in ViSi-Genie. The integer is entered by the user using a keyboard object and is displayed using a LED digits object.

This codebase example, on the other hand, presents an improved version wherein a send button on the keyboard facilitates the sending of the displayed integer to the serial port. The integer is sent as a string of ASCII bytes contained in a REPORT_MAGIC_EVENT_BYTES message.

Note

Workshop4 Pro is needed for this code example.

Prerequisites

This codebase example assumes the reader can program the 4D Systems display module using Workshop4 IDE ViSi-Genie environment. Beginners are advised to read the following aplication notes.

Instructions

Compile the attached ViSi-Genie Magic project and upload the program to a uLCD-32PTU (or to your target display). Copy the supporting files to a uSD card mounted to the PC. Properly unmount the uSD card from the PC and mount it to the uLCD-32PTU.

Note

Workshop4 Pro is needed for this code example.

Attachment

Project File