ViSi-Genie: Arduino The Cool Gauge Object
Introduction
This codebase example demonstrates how to write a sketch, using the ViSi-Genie-Arduino library, for a program that will make an Arduino host communicate with cool gauge objects on the display module. More specifically, this codebase example demonstrates how to create a basic Arduino program that will handle REPORT_OBJ
events coming from the display module. The program will also send WRITE_OBJ
and READ_OBJ
messages to the display module.
Prerequisites
This codebase example assumes that the reader has read and understood the codebase example ViSi-Genie: GTX The Cool Gauge Object. A working knowledge of the Arduino platform is also required. Users who are not familiar with the basics of interfacing an Arduino host to a 4D display module may refer to the application note ViSi-Genie: Connecting a 4D Display to an Arduino.
Instructions
Follow the procedure below to run this example. The reader is also advised to watch the accompanying video.
Note
Before proceeding to step 1 below, the ViSi-Genie program desribed in the codebase example ViSi-Genie: GTX The Cool Gauge Object should have been loaded to the display module already.
- Open the sketch in the Arduino IDE, compile it, and upload the program to your target Arduino board (an Arduino Uno for this codebase example).
-
Properly connect the Arduino Uno to the uLCD-32PTU.
Note
In this codebase example, the 4D Arduino Adaptor Shield (rev 2.0) was used.
-
Open the Serial Monitor of the Arduino IDE.
- The application should now run. Watch the accompanying video and follow the test procedure shown.