led row new

Author:
License: GPL
Github: rbrt/testing/led row new.axo

Inlets

bool32.risingfalling mute

bool32.rising redraw

int32 row

Outlets

None

Attributes

objref LEDmaster

spinner row

Declaration
bool trig;
bool mtrig;
bool doit;
uint8_t prerow;
uint8_t row;
Control Rate
if (!inlet_mute && !mtrig) {
  mtrig = 1;
  doit = 1;
}
if (inlet_mute)
  mtrig = 0;
if (!inlet_mute) {
  row = (inlet_row + attr_row) % 4;
  uint16_t offset = row * 77;
  if (inlet_redraw && !trig) {
    trig = 1;
    doit = 1;
  }
  if (!inlet_redraw)
    trig = 0;
  if (row != prerow) {
    doit = 1;
    prerow = row;
  }
  if ((doit && !attr_LEDmaster.ROW) && !attr_LEDmaster.LOCKED) {
    doit = 0;
    attr_LEDmaster.disp_cell_txt(row, 0, "");
    attr_LEDmaster.disp_cell_txt(row, 1, "");
    attr_LEDmaster.disp_cell_txt(row, 2, "");
    attr_LEDmaster.disp_cell_txt(row, 3, "");
    attr_LEDmaster.disp_cell_txt(row, 4, "");
    attr_LEDmaster.disp_cell_txt(row, 5, "");
    attr_LEDmaster.disp_cell_txt(row, 6, "");
    attr_LEDmaster.disp_cell_txt(row, 7, "");
    attr_LEDmaster.ROW = row + 1;
  }
}
if (inlet_mute)
  mtrig = 0;
if (!inlet_redraw)
  trig = 0;

Privacy

© 2024 Zrna Research