Coder Social home page Coder Social logo

visi-genie-arduino-library's People

Contributors

gavinlyonsrepo avatar wanago avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

visi-genie-arduino-library's Issues

bug: genie.WriteStr(1, "160°") displays as "160°"

Dear 4DSystems Team,

when set the value "150°" to a string object in Visi-Genie it displays correctly:
image

when I send the value "160°" through the serial command
genie.WriteStr(1, "160°");
it displays it as "160°":
IMG_20220328_173309

this must be a bug. Can you fix it?
with kind regards,
chukas

Example has reset line inverted

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.

Example has reset line inverted

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.

Migrate from Arduino to GCC or other compiler

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

2 bugs prevent compilation when used with some compilers

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

Simplify serial port interface and allow SoftSerial connections

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.

genieWriteObject crashing Arduino

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:

  • Use a const or define when creating hard limits, like this stack. Don't do this:
    static uint8_t _genieLinkStates[5] = {GENIE_LINK_IDLE};
  • Use this const or define to check the limits on the stack in the push function. You check against an empty stack on the pop....why not do both?

Problem with genie.DoEvents and genieEventhandler

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.