#NEWLINE# def update_leds( self ) : #NEWLINE# #INDENT# "Updates all the LEDs connected to a FAST controller. This is done\n        once per game loop for efficiency (i.e. all LEDs are sent as a single\n        update rather than lots of individual ones).\n\n        Also, every LED is updated every loop, even if it doesn't change. This\n        is in case some interference causes a LED to change color. Since we\n        update every loop, it will only be the wrong color for one tick.\n\n        " #NEWLINE# msg = 'RS:' #NEWLINE# for led in self . fast_leds : #NEWLINE# #INDENT# msg += ( ( led . number + led . current_color ) + ',' ) #NEWLINE# #UNINDENT# msg = msg [ : ( - 1 ) ] #NEWLINE# self . rgb_connection . send ( self )