None
frac32 pot1
frac32 pot2
frac32 pot3
frac32 pot4
frac32 pot5
frac32 pot6
frac32 pot7
frac32 pot8
bool32 button1
bool32 button2
bool32 button3
bool32 button4
text script
int32_t pot1, pot2, pot3, pot4, pot5, pot6, pot7, pot8;
int32_t button1, button2, button3, button4;
attr_script msg_t ThreadX2() {
setup();
while (!chThdShouldTerminate()) {
loop();
chThdSleepMilliseconds(1);
}
chThdExit((msg_t)0);
}
static msg_t ThreadX(void *arg) { ((attr_parent *)arg)->ThreadX2(); }
WORKING_AREA(waThreadX, 1024);
Thread *Thd;
button1 = 0;
button2 = 0;
button3 = 0;
button4 = 0;
pot1 = 0;
pot2 = 0;
pot3 = 0;
pot4 = 0;
pot5 = 0;
pot6 = 0;
pot7 = 0;
pot8 = 0;
Thd = chThdCreateStatic(waThreadX, sizeof(waThreadX), NORMALPRIO, ThreadX,
(void *)this);
outlet_pot1 = this->pot1;
outlet_pot2 = this->pot2;
outlet_pot3 = this->pot3;
outlet_pot4 = this->pot4;
outlet_pot5 = this->pot5;
outlet_pot6 = this->pot6;
outlet_pot7 = this->pot7;
outlet_pot8 = this->pot8;
outlet_button1 = this->button1;
outlet_button2 = this->button2;
outlet_button3 = this->button3;
outlet_button4 = this->button4;
chThdTerminate(Thd);
chThdWait(Thd);