def setRGB(self, r,g,b):
        try:
            self.bus.write_byte_data(DISPLAY_RGB_ADDR,0,0)
            self.bus.write_byte_data(DISPLAY_RGB_ADDR,1,0)
            self.bus.write_byte_data(DISPLAY_RGB_ADDR,0x08,0xaa)
            self.bus.write_byte_data(DISPLAY_RGB_ADDR,4,r)
            self.bus.write_byte_data(DISPLAY_RGB_ADDR,3,g)
            self.bus.write_byte_data(DISPLAY_RGB_ADDR,2,b)
            self.errorCount = 0
        except __HOLE__:
            Tools.log("Error writing to RGB Screen",1)
            self.errorCount += 1
            if (self.errorCount<5):
                self.clear()
                self.setRGB(r,g,b)

    # send command to display (no need for external use)
dataset/ETHPy150Open awslabs/simplebeerservice/sbsunit/devices/grovergb.py/GroveRGB.setRGB