Fix non-matching positions
This commit is contained in:
parent
62bcb07956
commit
d92ceafa57
@ -189,7 +189,7 @@ led:
|
|||||||
size: 24
|
size: 24
|
||||||
diameter: 63.5
|
diameter: 63.5
|
||||||
angle: 0
|
angle: 0
|
||||||
pos: [-197.973, -38.1]
|
pos: [-199.0, -35.0]
|
||||||
- type: circle
|
- type: circle
|
||||||
start: 408
|
start: 408
|
||||||
size: 24
|
size: 24
|
||||||
@ -348,7 +348,7 @@ led:
|
|||||||
size: 24
|
size: 24
|
||||||
diameter: 63.5
|
diameter: 63.5
|
||||||
angle: 0
|
angle: 0
|
||||||
pos: [-131.982, -152.4]
|
pos: [-133.0, -151.0]
|
||||||
|
|
||||||
# controller 8
|
# controller 8
|
||||||
- type: circle
|
- type: circle
|
||||||
@ -512,7 +512,7 @@ position_map:
|
|||||||
- index: 36
|
- index: 36
|
||||||
pos: [-228.6, -131.982]
|
pos: [-228.6, -131.982]
|
||||||
- index: 37
|
- index: 37
|
||||||
pos: [-151, -133]
|
pos: [-151.0, -133.0]
|
||||||
- index: 38
|
- index: 38
|
||||||
pos: [-76.2, -131.982]
|
pos: [-76.2, -131.982]
|
||||||
- index: 39
|
- index: 39
|
||||||
@ -528,7 +528,7 @@ position_map:
|
|||||||
- index: 44
|
- index: 44
|
||||||
pos: [-114.3, -197.973]
|
pos: [-114.3, -197.973]
|
||||||
- index: 45
|
- index: 45
|
||||||
pos: [-35, -199]
|
pos: [-35.0, -199.0]
|
||||||
- index: 46
|
- index: 46
|
||||||
pos: [38.1, -197.973]
|
pos: [38.1, -197.973]
|
||||||
- index: 47
|
- index: 47
|
||||||
|
@ -311,7 +311,8 @@ class LEDSystem():
|
|||||||
|
|
||||||
|
|
||||||
def setring(self, r,g,b,idx):
|
def setring(self, r,g,b,idx):
|
||||||
|
print(self.rings)
|
||||||
|
print(self.rings[idx])
|
||||||
ring = self.rings[idx]
|
ring = self.rings[idx]
|
||||||
for pixel in range(ring[2],ring[3]):
|
for pixel in range(ring[2],ring[3]):
|
||||||
self.setpixel(r,g,b,pixel)
|
self.setpixel(r,g,b,pixel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user