... I've done this with the M42 command - e.g. "M42 P25 S255", "M42 P27 S0", "M42 P29 S255" on three output pins to switch the RGB LED's to green ( P25/P27/P29 = R/G/B ) - or any other combination for the other colurs -- here a sample for the "simpler" colour selection (could be full RGB range with PWM):
This is a screenshot showing the user buttons while testing - then I've programmed modules to switch the RGB-LED's with changing status:
Edited 1 time(s). Last edit at 08/01/2018 03:00AM by VDX.
Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [
reprap.org] -- Deutsche Facebook-Gruppe - [
www.facebook.com]
Call for the project "garbage-free seas" - [
reprap.org]