Skip to content

ViSi-Genie Magic: Color Picker

Introduction

This example shows how to use Keyboard + ColorPicker Event Magic to read values from the Color Picker object and then manipulate the values to be able to display the color picked to an RGB Led. The program used bit operations and bit manipulations to convert RGB(565) value from the color picker input to RGB 24 bit format. After conversion, the values are mapped to 0-1000 for PWM.

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

Hardware Setup

Connect the components with the circuit and schematic diagram below.

Circuit Diagram

circuit-diagram


Schematic Diagram

schematic-diagram

Downloading the project to the display

Compile the attached ViSi-Genie project and upload it to a uLCD-43DT or any 4 Systems DIABLO-16 graphics processor. Copy the supporting files to a uSD mounted to the PC. Properly unmount the uSD card from the PC and mount it to the display.

Note

Workshop4 Pro is needed for this code example.

Attachment

Project File