arduino: replaced pinMode() calls with DDRA bit manipulation and NOP instructions for more control over the delay; renamed time() to chargeTime() and simplified arguments