strbar

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

Inlets

frac32 in

Outlets

charptr32 string

Attributes

table five char prefix

Declaration
char c[2 + strlen("attr_prefix")];
Init
strcpy(&c[2], "attr_prefix");
c[0] = 1; // string bar mode
Control Rate
int32_t v = __SSAT(inlet_in, 28) >> 21;
if (v >= 0)
  c[1] = (uint8_t)(v + 1); // must not be zero !
else
  c[1] = (uint8_t)(256 + v);
outlet_out = c;

Privacy

© 2024 Zrna Research