Skip to content

ViSi-Genie Magic: Arduino Spectrum

Introduction

This codebase example is a companion sketch for the MagicSpectrum example in ViSi-Genie. The Workshop4 sample consists of 2 Spectrum objects with different Columns. MagicObject0 was used as Spectrum Object Handler.

How MagicObject(Spectrum multibyte handler) handles data from arduino

Byte Meaning
1 spectrum object number
2 Starting Bar(0 to Columns-1)
3-n New values to be written to consecutive bars

From GTX (or program), send a string of bytes eg. in GTX, click 'Send Values', check "Other" and Bytes, then enter 00,05,10,20,30,40,50,60,70,80,90,100 and click OK.

The Arduino sketch (or program) uses the function genie.WriteMagicBytes to talk with the spectrum.This command can be used to send an array of bytes to a magic object. The magic object can process the bytes in any way you want it to as there are no restrictions on the format of the information sent.

Note

Worskhop 4 PRO is needed for this codebase 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.

Attachment

Project File