Thanks folk, managed to solve my noobie teething problems (configuration and alldigital I/O). Sorry to waste your time.