led cell text NEW

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

Inlets

charptr32 text

bool32.risingfalling redraw

bool32.rising mute

Outlets

int32 test

Attributes

spinner row

spinner column

objref LEDmaster

Declaration
int8_t fb;
int16_t nb;
uint16_t offset;
bool doit;
bool trig;
bool mtrig;
char text[8];
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) {
    attr_LEDmaster.disp_cell_txt(attr_row, attr_column, inlet_text);
    attr_LEDmaster.ROW = attr_row + 1;
    doit = 0;
  }
}

outlet_test = inlet_text[0];

Privacy

© 2024 Zrna Research