e-sr / moonboard

GNU General Public License v3.0
98 stars 43 forks source link

Moonboard layouts #3

Open kiks73 opened 4 years ago

kiks73 commented 4 years ago

Hi, I would like to add led to my moonboard, but I think that my old moonboard layout is different from the ones in the images. I would like to know if it is possible to modify the moonboard layout and what happens when using the app. I took a look at https://github.com/e-sr/moonboard/blob/master/problems/HoldSetup.json but I'm not sure it is the right place to look at to change the holds layout.

What about the led strip path? does it start from bottom left (1-A) to top left (18-A) and then 18-B to 1-B and so on?

Thanks for your time.

8cH9azbsFifZ commented 3 years ago

You may want to have a look at my fork with a description on how to create an alternative led strip path.

e-sr commented 3 years ago

The file /led/moonboard.py contain a dict, named LED_LAYOUT, of arrays of dimension 18x11. There are at this time some arrays defined. The array represent the moonboard holds, the value at i,j position of the array the corresponding led address in the stripe. For a custom layout you have to define your own array.

e-sr commented 3 years ago

Please keep in mind that LED_LAYOUT and moonboard layout are two different things. At this time only the Moonboard app knows about layout