lib/ws2812/unicornhat.rb
def map_coords(x, y)
			check_coords(x, y)
			y = 7 - y
			case rotation
			when 90
				x, y = y, 7 - x
			when 180
				x, y = 7 - x, 7 - y
			when 270
				x, y = 7 - y, x
			end

			UHAT_MAP[x][y]
		end
def map_coords(x, y)
			check_coords(x, y)
			y = 7 - y
			case rotation
			when 90
				x, y = y, 7 - x
			when 180
				x, y = 7 - x, 7 - y
			when 270
				x, y = 7 - y, x
			end

			UHAT_MAP[x][y]
		end
Maps +x+, +y+ coordinates to index on the physical matrix
 (takes rotation into account)