Skip to content

Several layouts: no button to left-right scroll #156

Closed

Description

@limpkin
Image

Activity

  1. MoonModules commented on Oct 25, 2026

    @MoonModules
    Owner

    Like this?

    Image
  2. ewowi commented on Oct 25, 2026

    @ewowi
    Collaborator

    Message from the team ;-)

    Thanks for the report! The tab strip scrolls sideways, but only with a trackpad or a touch screen: a mouse wheel cannot reach the tabs past the edge. The next build puts an arrow over each end of the strip that has tabs beyond it.

    For a matrix like yours, one layout can replace the seven rows. This MoonLive layout script places rows of lights from one strand, each row left to right or right to left, every row the same way or snaked. Run it as a MoonLive layout in place of the seven rows, and set cols to 10, rows to 7 and wiring to how your strand runs:

    // Rows of lights from one strand, each row wired left to right or right to left: every row the same way, or snaked.
    
    class RowsLayout {
      byte cols = 10;
      byte rows = 7;
      byte wiring = 2;
    
      int dimensions() { return 2; }
    
      string tags() { return "💫"; }
    
      void defineControls() {
        addControl("cols", cols, 1, 128); // lights in each row
        addControl("rows", rows, 1, 128); // rows, the first at the top
        addSelect("wiring", wiring, "left to right|right to left|snake from the left|snake from the right"); // which way the strand runs each row
      }
    
      void placeLights() {
        int back = 0; // 1 while a row runs right to left
        if (wiring == 1) { back = 1; }
        if (wiring == 3) { back = 1; }
        for (int y = 0; y < rows; y = y + 1) {
          for (int i = 0; i < cols; i = i + 1) {
            if (back == 1) { addLight(cols - 1 - i, y, 0); }
            else { addLight(i, y, 0); }
          }
          if (wiring >= 2) { back = 1 - back; } // a snaked strand turns at the end of each row
        }
      }
    }

    If your strand snakes and starts at the left, the built-in Grid layout does the same with its serpentine switch on.

  3. MoonModules commented on Oct 26, 2026

    @MoonModules
    Owner

    fix is in latest
    closing the issue, reopen when needed

  4. added
    bug
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions