higher level API for analogue output