changeset 30 | 5226e512755c |
parent 27 | 359c1771c366 |
29:453550e69e07 | 30:5226e512755c |
---|---|
6 |
6 |
7 ;; Read state of dip switches |
7 ;; Read state of dip switches |
8 ;; Output: r16 |
8 ;; Output: r16 |
9 DIP_Read8: |
9 DIP_Read8: |
10 ; update |
10 ; update |
11 rcall SPI_SendRecv |
11 ; rcall SPI_SendRecv |
12 |
12 |
13 ; get bits |
13 ; get bits |
14 lds r16, DIP_BUFFER |
14 lds r16, DIP_BUFFER |
15 |
15 |
16 ret |
16 ret |