def flip_h(self, redraw=True):
        """
        Flip LED matrix horizontal
        """

        pixel_list = self.get_pixels()
        flipped = []
        for i in range(8):
            offset = i * 8
            flipped.extend(reversed(pixel_list[offset:offset + 8]))
        if redraw:
            self.set_pixels(flipped)
        return flipped
def flip_h ( self , redraw = True ) : pixel_list = self . get_pixels ( ) flipped = [ ] for i in range ( 8 ) : offset = i * 8 flipped . extend ( reversed ( pixel_list [ offset : offset + 8 ] ) ) if redraw : self . set_pixels ( flipped ) return flipped
Flip LED matrix horizontal