We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am reading sensor data through I2C on the Raspberry Pi, number crunching and displaying (realtime) in the window . . . size(420,420). No problem, all working as required! Now, I would like to have a 2nd window for a GUI. I have tried using CreateImage (which seems to put a window in the main window) to no avail. The one thing I notice is that the program code always seems to prefer displaying in the "main" window and ignores all attempts to create this 2nd window?! I suspect the realtime activity is a problem.
Would switching to a more current coding system like processing.js, p5.js or processing.py help?
Any advice would be appreciated.
Answers
afaik CreateImage creates an internal PGraphics which you have to display with image()
See reference
Try these:
https://forum.processing.org/two/search?Search=runsketch
https://forum.processing.org/two/discussion/comment/83702/#Comment_83702
https://forum.processing.org/two/discussion/comment/81984/#Comment_81984
Kf