You would need to import this into node-red
I really like what node-red can do
a brief history of my port control the first time I controlled hardware was for the z80 and coded in Hex yuck ! in the 1990's
a few years later then used a 486 using the parallel port and Qbasic maybe around 2000
after that using a c code demo around 2011
after that using c++ and my fltk demo and the raspberry pi3 in 2019
so after seeing how its done the old fashioned way and then doing it several different ways over time
I thought to try node-red just for fun and was very impressed with the results
I had it up and running in just a day without ever using node-red before
it was a bit odd at first but I am very visual and see code this way in my head
I can see a big future with node-red !
and even it is easy to control the same app by wifi using my phone
what more could you want?
having fun again and that's what you need to stay in the game and stay young
Any questions about setting up node red for the raspberry pi3 here is the prestep
https://sourceforge.net/p/bassix-gtk3-webkit-browser/wiki/node-red-install/
I guess the way to see this is what bash scripting is to linux
is what javascript is for web pages
now node red is a way to script and scrape the web and control hardware
this is the future of coding !
some new things to learn but much worth the effort
and there is a lot of documentation to get started with
and the only limit is your imagination
node red
node red gui part 1
node red gui part 2 to show the pinouts of the rpi3
Node Red
GPIO controller for the raspberry pi
Node-Red json exported source code to generate the above code
just import this into node-red
Last edit: big-bass 2021-09-21