//#include #include #include #include "arduinolib.h" //#include "HardwareSerial.h" void Arduinolib__dwrite_step(int p, int v, Arduinolib__dwrite_out *out){ /* set pin 5 of PORTB for output. i.e port 13 */ if (p == 13){ DDRB |= _BV(DDB5); if (v == 0) { PORTB &= ~(1<i = 0; for(j = 0; j < 100; ++j) self->mem[j] = 0.0; } void Mathext__st_cos_step(float a, Mathext__st_cos_out *out, Mathext__st_cos_mem *self) { out->o = self->mem[self->i]; self->i = (self->i+1) % 100; self->mem[self->i] = cosf(a); }*/