import json
import requests


def adjust_led(state_irgb):
	"""
	Sends a request to the arduino to adjust the leds.
	"""
	state = state_irgb.split()[0]
	irgb = state_irgb.split()[1].upper()
	url = f"http://192.168.1.188/led?state={state};irgb={irgb};"
	return json.loads(requests.get(url).text)