fixed missing 'pinmode' argument