Hannah Potentiometer / LED Example

I was playing around with combining different parts of worked examples tonight and came up with this code for the Hannah board. All it does is change the LED hue as you turn the potentiometer … but, it does this by turning the potentiometer position into a number output for hue (0-1, BTW, not 0-360). The output is connected in the planner to the hue2rbg vimp. The output from the vimp is then re-connected to the imp’s input which sets the LED to the RGB value. A perfect example of a convoluted solution to a simple problem created in the pursuit of learning! Anyway, if you’re interested, the code is attached.


Bob

Very cool.  I can now get that perfect shade soft orange! Thanks for sharing!

For the new users below is a pic of what you need to do when tangibleant says “The output is connected in the planner to the hue2rbg vimp. The output
from the vimp is then re-connected to the imp’s input which sets the LED
to the RGB value. <img src=”%3Cimg%20src=" <code=""><img src="%3Cimg%20src=" “=”">"


Neat!

Thanks. And, thanks SouthPaw for posting the picture. That does make it much more clear what I was talking about with the vimp. :-)