Visi interface is loaded onto the SD card in the 4D display and it would be a huge undertaking to try and replicate all of this functionality.
If I could figure out how to parse the .dat file and generate the correct visuals for the visi front end then it may not be too bad to add simulation too. Is what we have already enough to make it useable?
Yes this is a brilliant start, thank you so much for doing this it means that we can use the components on the display to control the host micro, using the display as a serial slave would be a great tool also , but I realize you have a lot to do yet....
Cheers and thanks again
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
I have tried to get your Visi Demo chart going but to no avail, I am enclosing the 4D Workshop file that I am using which has just the 2 rocker switches, could you take a look at it please and see if anything is wrong, I have set events on both rocker switches to "Report Message"
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
Might be worth trying with the rockerswitch events set to none. With the event set to report the display will talk to the micro when the switch state changes. With the event set to none then you should be able to poll the state of the switch at your leisure.
Also worth checking the baud rate of the Flowcode component is set correctly looked like it should be 115200 rather then 9600.
Is there any chance you could post the 4D Workshop file that you used to setup the Visi-Demo that you did please...
Cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
I have been trying to get your Visi-Demo chart to work and noticed that the two commands for the rocker switch index 0 are the same, so is it not switching rocker 0 on and then switching it on again ?
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
Yes whoops the second VisiWriteObject call should be 0,0 not 0,1.
Not actually tested the code on hardware but it should be ok, went through it quite carefully. If your still having problems I will dig through for my 4D display and see if I can help you debug.
I will have another look when I get home tonight, I could not find the baud rate on the component, so I thought I would try the TX/RX flasher but I could not get that working either...
cheers for now
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
The component should default to 9600 baud but there is an issue with this as you need to call the init function to initialise the UART but this then assumes a old style display and ramps the UART speed up to a higher baud (57600 from memory). Not sure if the newer display supports this as is. Will probably end up seperating out the Visi stuff into a stand alone component so it's easier to determine if your drawing to the display or talking via the Visi interface.
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
Thanks for doing this so quickly, I know what I am doing all day sunday ..
Cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.