4dsystems / visi-genie-arduino-library Goto Github PK
View Code? Open in Web Editor NEWViSi-Genie - Arduino Library
License: GNU General Public License v3.0
ViSi-Genie - Arduino Library
License: GNU General Public License v3.0
This was a great library/demo to find! Thanks!
One problem I had to fix with the example was with resetting my ulcd-32ptu from an Uno:
pinMode(4, OUTPUT); // Set D4 on Arduino to Output (4D Arduino Adaptor V2 - Display Reset)
digitalWrite(4, 0); // Reset the Display via D4
delay(100);
digitalWrite(4, 1); // unReset the Display via D4
The original code set the line to 1, then 0, which hung the 32ptu.
This was a great library/demo to find! Thanks!
One problem I had to fix with the example was with resetting my ulcd-32ptu from an Uno:
pinMode(4, OUTPUT); // Set D4 on Arduino to Output (4D Arduino Adaptor V2 - Display Reset)
digitalWrite(4, 0); // Reset the Display via D4
delay(100);
digitalWrite(4, 1); // unReset the Display via D4
The original code set the line to 1, then 0, which hung the 32ptu.
Hi,
We have a prototype build using the 4d display and Arduino, now we what to update the software to GCC (or others) do we have the means to migrate the code to other SDK/compilers? can anyone point me to the correct repository for demos, please.
Best Regards,
Suman
Line 885 does not compile with the latest 3.0.0 version of the ESP8266 Arduino platform
Same with line 1192
Both lines are:
n = abs(n);
Since n is unsigned, the lines are meaningless, and some compilers do not have abs version for unsigned values since unsigned value is always positive ;-)
The lines should be removed from the library
I'm not sure why this library enumerates all the possible serial devices (SERIAL through SERIAL_3) and checks them against the devices. The IDE will do the necessary checking based on the board being used.
Instead, the genieBegin function should take a stream and just send data to that. Let the IDE figure out if the hardware stream is supported.
Example:
void genieBegin(Stream &serial);
This would make the library more future proof as more Arduinos are added AND allow us to use a SoftSerial connection. It's not great that I'm forced to use the hardware serial on an Uno.
The Xbee device library (and other LCD libraries) are a great example of handling devices this way.
I've noticed that there are frequent crashes using this library. I've tracked down the reason.
I implemented a Spectrum widget and I was sending it data:
genieWriteObject(GENIE_OBJ_SPECTRUM, 0x0, gaugeData);
..and after 112 sends, the Arduino resets. The cause of this is that:
genieWriteObject
includes a call at the end
_geniePushLinkState(GENIE_LINK_WFAN);
This function increments a pointer into a stack hardcoded as:
_genieLinkStates[5]
Supposedly the stack is popped when a call to
_geniePopLinkState
is made. The thing is, it's never called as far as I can tell. At about 112 pushes onto this stack (obviously overflowed), some critical part of memory is stomped on and the arduino resets.
A quick fix was to remove the
_geniePushLinkState(GENIE_LINK_WFAN);
call from the genieWriteObject, but I really didn't dig into what the stack is for.
Some suggestions for this:
Hi, I am working on an arduino Yun connected to the Gen4-uLCD-50DT display. I am going through theViSi-Genie Writing to Genie Objects Using an Arduino Host tutorial, and am using the genieArduino_Demo sketch example that comes with genie library. I have made no changes to the example.
My problem is that the user event handler never seems to be called. The objects (cool_guage and strings) can be written to and changed but no events are ever received by the handler, either from a ReadObject or from a Report_Message from an object.
The display and arduino are connected correctly and have the correct buad rate.
I am at a loss for how to diagnose the problem further, any help would be appreciated
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.