在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):4dsystems/ViSi-Genie-Arduino-Library开源软件地址(OpenSource Url):https://github.com/4dsystems/ViSi-Genie-Arduino-Library开源编程语言(OpenSource Language):C++ 85.6%开源软件介绍(OpenSource Introduction):ViSi-Genie-Arduino-Library (A.K.A genieArduino)Arduino Library for 4D Systems ViSi-Genie Environment This library supports the following: Support for neagative numbers, unsigned longs, unsigned integers with the WriteStr function. Features enhanced String Writing capability, no longer is a character Array the only viable option. Support for Workshop4 PRO features. 2+ displays connected to a single Arduino, and adds a Demo to illustrate how that is achieved. New Internal and Inherent Widgets. Much more... InformationThis library provides high level functions for the Arduino, to ease communication with 4D Systems modules when using the module configured with ViSi-Genie. Workshop4 PRO adds additional features to ViSi-Genie, allowing the User to write 4DGL code which can be executed at will from ViSi-Genie, enabling many advanced features not previously possible. Please refer to the 4D Systems website, namingly the Workshop4 Product Page, for documentation regarding Workshop4, and its environments. InstallationLibrary folder should be placed in the C:\Users(User name)\My Documents\Arduino\Libraries\ folder, or equivalent. (restart the IDE if already open). PLEASE ensure that the old library (if installed) has been removed completely so it does not conflict. For more information on the installation, please refer to [Installing Additional Arduino Libraries] (http://arduino.cc/en/Guide/Libraries) Open the ViSi-Genie project using Workshop4 and download to your display, connect the display to Arduino, reset the Arduino and it should work. This library should be discoverable from the Arduino IDE Library Manager too. Example SketchInside the library are 4 example sketches, to assist with getting started using this library. Inside is also a ViSi-Genie Workshop4 project, which can be used on a range of 4D Systems displays (designed on a uLCD-32PTU however can be changed via Workshop4 menu). It illustrates how to use some of the commands in the library include Read Object, Write Object, Reported Messages, Write Contrast and Write String. Tested withThis library has been tested on the Duemilanove, Uno, Mega 1280, Mega 2560, Leonardo, Chipkit Max32, Due, Intel Galileo, Teensy and Yun (Software Serial only on Yun). Any problems discovered with this library, please contact technical support so fixes can be put in place, or seek support from our forum. Compatible 4D Systems Display ModulesThis library will work with all 4D Systems Modules which are capable of using the ViSi-Genie environment. This is therefore all Picaso, Pixxi-28, Pixxi-44 and Diablo16 Display Modules. The demo included with this library was made for the gen4-uLCD-32DCT-CLB (3.2" Capacitive Touch gen4 module) however can easily be adapted to other size displays. General Library DiscussionThis section serves to give brief discussion about the constructor and functions included in the library. For functional examples on how to use these functions in a project, refer to the examples folder. Genie()This is the constructor for the library. It creates a unique instance that can be set to use the desired serial port.
Begin(Stream &serial)Creates an instance of ViSi Genie by assigning a serial stream
WriteContrast(uint16_t value)Sets the display contrast/brightness to a new value
ReadObject(uint16_t object, uint16_t index)Sends a request to read the value of the widget specified by object (ex: GENIE_OBJ_GAUGE) and index. The value will be sent as a GENIE_REPORT_OBJECT command. A full list of available objects (ex: GENIE_OBJ_GAUGE, GENIE_OBJ_SLIDER etc) can be found at the bottom of this Readme.
WriteObject(uint16_t object, uint16_t index, uint16_t data)Updates the widget, specified by object (ex: GENIE_OBJ_GAUGE) and index, to a new value specified by data A full list of available objects (ex: GENIE_OBJ_GAUGE, GENIE_OBJ_SLIDER etc) can be found at the bottom of this Readme.
WriteIntLedDigits(uint16_t index, int16_t data)Updates the Internal LedDigits specified by index to a new 16-bit value, specified by data. The widget parameter Format in ViSi Genie project should be set to Int16. Internal LedDigits are availble for Diablo and Pixxi displays.
WriteIntLedDigits(uint16_t index, float data)Updates the Internal LedDigits specified by index to a new 32-bit float value, specified by data. The widget parameter Format in ViSi Genie project should be set to any Float option. Internal LedDigits are availble for Diablo and Pixxi displays.
WriteIntLedDigits(uint16_t index, int32_t data)Updates the Internal LedDigits specified by index to a new 32-bit integer value, specified by data. The widget parameter Format in ViSi Genie project should be set to Int16. Internal LedDigits are availble for Diablo and Pixxi displays.
WriteStr(uint16_t index, char * string)Updates the String widget specified by index with a new character string specified by string
WriteStr(uint16_t index, const __FlashStringHelper *ifsh)Updates the String widget specified by index with a string stored in program space (flash memory) specified by ifsh. This is only available for AVR boards.
WriteStr(uint16_t index, const String &s)Updates the String widget specified by index with a String widget specified by s
WriteStrU(uint16_t index, uint16_t * string)Updates the String widget specified by index with a new Unicode (16-bit) character string specified by string
WriteStr(uint16_t index, int n)Updates the String widget specified by index with a new integer value n with base 10
WriteStr(uint16_t index, int n, int base)Updates the String widget specified by index with a new integer value n with base specified by base
WriteStr(uint16_t index, unsigned int n)Updates the String widget specified by index with a new unsigned integer value n with base 10
WriteStr(uint16_t index, unsigned int n, int base)Updates the String widget specified by index with a new unsigned integer value n with base specified by base
WriteStr(uint16_t index, long n)Updates the String widget specified by index with a new long value n with base 10
WriteStr(uint16_t index, long n, int base)Updates the String widget specified by index with a new long value n with base specified by base
WriteStr(uint16_t index, unsigned long n)Updates the String widget specified by index with a new unsigned long value n with base 10
WriteStr(uint16_t index, unsigned long n, int base)Updates the String widget specified by index with a new unsigned long value n with base specified by base
WriteStr(uint16_t index, double n)Updates the String widget specified by index with a new 64-bit float value n with 2 decimal digits
WriteStr(uint16_t index, double n, digits)Updates the String widget specified by index with a new 64-bit float value n with the number of decimal digits as specified by digits
WriteInhLabel(uint16_t index)Updates the Inherent Label widget specified by index with the default contents defined in Workshop4
WriteInhLabel(uint16_t index, char * string)Updates the Inherent Label widget specified by index with a new character string specified by string
WriteInhLabel(uint16_t index, const __FlashStringHelper *ifsh)Updates the Inherent Label widget specified by index with a string stored in program space (flash memory) specified by ifsh. This is only available for AVR boards.
WriteInhLabel(uint16_t index, const String &s)Updates the Inherent Label widget specified by index with a Inherent Label widget specified by s
WriteInhLabel(uint16_t index, int n)Updates the Inherent Label widget specified by index with a new integer value n with base 10
WriteInhLabel(uint16_t index, int n, int base)Updates the Inherent Label widget specified by index with a new integer value n with base specified by base
WriteInhLabel(uint16_t index, unsigned int n)Updates the Inherent Label widget specified by index with a new unsigned integer value n with base 10
WriteInhLabel(uint16_t index, unsigned int n, int base)Updates the Inherent Label widget specified by index with a new unsigned integer value n with base specified by base
WriteInhLabel(uint16_t index, long n)Updates the Inherent Label widget specified by index with a new long value n with base 10
WriteInhLabel(uint16_t index, long n, int base)Updates the Inherent Label widget specified by index with a new long value n with base specified by base
WriteInhLabel(uint16_t index, unsigned long n)Updates the Inherent Label widget specified by index with a new unsigned long value n with base 10
WriteInhLabel(uint16_t index, unsigned long n, int base)Updates the Inherent Label widget specified by index with a new unsigned long value n with base specified by base
WriteInhLabel(uint16_t index, double n)Updates the Inherent Label widget specified by index with a new 64-bit float value n with 2 decimal digits
|
请发表评论