led text attr NEW

Author:
License: GPL
Github: rbrt/testing/led text attr NEW.axo

Inlets

bool32.rising redraw

int32 row

bool32.risingfalling mute

Outlets

None

Attributes

spinner row

table cell0

table cell1

table cell2

table cell3

table cell4

table cell5

table cell6

table cell7

objref LEDmaster

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_cell0");
    attr_LEDmaster.disp_cell_txt(row, 1, "attr_cell1");
    attr_LEDmaster.disp_cell_txt(row, 2, "attr_cell2");
    attr_LEDmaster.disp_cell_txt(row, 3, "attr_cell3");
    attr_LEDmaster.disp_cell_txt(row, 4, "attr_cell4");
    attr_LEDmaster.disp_cell_txt(row, 5, "attr_cell5");
    attr_LEDmaster.disp_cell_txt(row, 6, "attr_cell6");
    attr_LEDmaster.disp_cell_txt(row, 7, "attr_cell7");
    attr_LEDmaster.ROW = row + 1;
  }
}
if (inlet_mute)
  mtrig = 0;
if (!inlet_redraw)
  trig = 0;

Privacy

© 2024 Zrna Research