strbardbl

string and double bar for OLED
Author: Smashed Transistors
License: LGPL
Github: tiar/HW/strbardbl.axo

Inlets

frac32 in1

frac32 in2

Outlets

charptr32 string

Attributes

table five char prefix

Declaration
char c[3 + strlen("attr_prefix")];
Init
strcpy(&c[3], "attr_prefix");
c[0] = 3; // string bar mode
Control Rate
int32_t v = __SSAT(inlet_in1, 28) >> 21;
c[1] = (uint8_t)(v + (v >= 0 ? 1 : 256));
v = __SSAT(inlet_in2, 28) >> 21;
c[2] = (uint8_t)(v + (v >= 0 ? 1 : 256));
outlet_out = c;

Privacy

© 2024 Zrna Research