| 33 | |
| 34 | |
| 35 | byte getRegister(byte r) |
| 36 | { |
| 37 | byte c; |
| 38 | |
| 39 | PORTB &=~_BV(2); |
| 40 | c = SPI.transfer(r&0x1F); |
| 41 | c = SPI.transfer(0); |
| 42 | PORTB |= _BV(2); |
| 43 | |
| 44 | return(c); |
| 45 | } |
| 46 | |
| 47 | void setRegister(byte r, byte v) |
| 48 | { |
no outgoing calls
no test coverage detected