144 if ( angleArg < 0) angleArg = 0;
145 if ( angleArg > 180) angleArg = 180;
155 uint8_t count = 0, i = 0;
158 static unsigned long lastRefresh = 0;
159 unsigned long m = millis();
162 if ( m >= lastRefresh && m < lastRefresh + 20)
return;
166 if ( count == 0)
return;
175 for ( i = 1; i < count; i++) {
193 for ( i = 0; i < count; i++) digitalWrite( s[i]->
pin, 1);
195 uint8_t start = TCNT0;
200 for ( i = 0; i < count; i++) {
201 uint16_t go = start + s[i]->
pulse;
207 if ( now < last) base += 256;
210 if(base + now >= go - 16)
215 if ( base+now > go) {
216 digitalWrite( s[i]->
pin,0);