How Can I Make Logic 1 and Logic 0 graphical with Node red and RPi 3

May be you are looking after this:
How to adjust button colors according to "some device" state