mcp23s17 ansprechbar
This commit is contained in:
parent
08795e7547
commit
d3afcc2f37
7 changed files with 114 additions and 46 deletions
2
spi.h
2
spi.h
|
@ -5,6 +5,7 @@
|
|||
#include <stdint.h>
|
||||
#include "pio.h"
|
||||
|
||||
#define SLSL B4
|
||||
#define MOSI B5
|
||||
#define MISO B6
|
||||
#define SCLK B7
|
||||
|
@ -16,6 +17,7 @@
|
|||
enum SPIADR {
|
||||
BEBA0 = 2,
|
||||
BEBA1 = 3,
|
||||
NONE = 7,
|
||||
};
|
||||
|
||||
class SPI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue