dip.inc
author Tero Marttila <terom@paivola.fi>
Fri, 02 May 2014 00:10:14 +0300
changeset 86 61925fb4947e
parent 30 5226e512755c
permissions -rw-r--r--
split ledbars into two groups
;;
;; Reading DIP switches from SPI
;;

.set DIP_BUFFER = spi_inbuf + 1

;; Read state of dip switches
;;  Output: r16
DIP_Read8:
		; update
;		rcall		SPI_SendRecv
		
		; get bits
		lds			r16, DIP_BUFFER

		ret