moving config to default_config and adding in 3d models for the macropad case itself

This commit is contained in:
Lucas Oskorep
2022-09-15 17:03:02 -04:00
parent 93e3e1eadc
commit bc7a7c0168
15 changed files with 41 additions and 111 deletions
+9
View File
@@ -0,0 +1,9 @@
def clamp(num, min_value, max_value):
return max(min(num, max_value), min_value)
def rgb_from_int(rgb):
blue = rgb & 255
green = (rgb >> 8) & 255
red = (rgb >> 16) & 255
return red, green, blue