endlich ein SPI sclk signal

This commit is contained in:
Tristan Krause 2019-03-25 13:00:22 +01:00
parent 419e37eeae
commit 08795e7547
10 changed files with 172 additions and 21 deletions

17
mcp23s17.h Normal file
View file

@ -0,0 +1,17 @@
#ifndef MCP23S17_H
#define MCP23S17_H
#include "spi.h"
class MCP23S17
{
public:
MCP23S17(SPI&, uint8_t);
void setPort(uint8_t) const;
private:
SPI& spi;
const uint8_t adr;
};
#endif // MCP23S17_H