Hello,
I have been trying to figure out how to assign the sonar information from an arduino sensor to Processing and make it control a library of still images.
I have been able to retrieve the serial data into Processing and I have been able to connect with an audio library but I haven't been able to figure out how to it with a folder of still images.
I have felt like I had been on the right track a few times but I really just feel like ripping my hair out!
Any advice would be greatly appreciated!!
Thanks
I have been trying to figure out how to assign the sonar information from an arduino sensor to Processing and make it control a library of still images.
I have been able to retrieve the serial data into Processing and I have been able to connect with an audio library but I haven't been able to figure out how to it with a folder of still images.
I have felt like I had been on the right track a few times but I really just feel like ripping my hair out!
Any advice would be greatly appreciated!!
Thanks
1

You define/declare global PImage variables, which is fine, but when loading them, you redefine new (local) PImage variables, of same names than the global ones, so masking them, and their value/content is lost at the end of setup()! The cure is simple: drop the 'PImage' part inside setup(). So you use the declared variables (initialization) without re-declaring them.