led cell text

Author:
License: GPL
Github: rbrt/push/led cell text.axo

Inlets

charptr32 text

bool32.risingfalling redraw

bool32.rising mute

Outlets

None

Attributes

spinner row

spinner column

objref LEDmaster

Declaration
int8_t fb;
int16_t nb;
uint16_t offset;
bool doit;
bool trig;
bool mtrig;
Init
#define BARS_ONE_L 0x03
#define BARS_ONE_R 0x04
#define BARS_TWO 0x05
#define BARS_NONE 0x06

offset = attr_LEDmaster.array[attr_column + 308] + (attr_row * 77);
Control Rate
if (!inlet_mute && !mtrig) {
  mtrig = 1;
  doit = 1;
}
if (inlet_mute)
  mtrig = 0;
if (!inlet_mute) {
  if (inlet_redraw && !trig) {
    trig = 1;
    doit = 1;
  }
  if (!inlet_redraw)
    trig = 0;
  if ((doit && !attr_LEDmaster.ROW) && !attr_LEDmaster.LOCKED) {
    memset(&attr_LEDmaster.array[offset], 32, 8);
    memcpy(&attr_LEDmaster.array[offset], inlet_text, strlen(inlet_text));
    attr_LEDmaster.ROW = attr_row + 1;
    doit = 0;
  }
}

Privacy

© 2024 Zrna Research