So you have a moment in your program when this is written to the terminal:
R= 104 G= 124 B= 142
Locate that line in the code. Add something that will write those same values, whichever they are, to the pins connected to the RGB LED. Or am I missing something here?
You manage to write 104 in the terminal. Then 98. Why don't you manage to write the same values to the RGB LED pins? Writing to the terminal happens "dynamically", right? So should writing to the LEDs.