1wire slave code for AVRs