b15f/spi.h

21 lines
216 B
C
Raw Normal View History

2019-03-22 14:51:52 +00:00
#ifndef SPI_H
#define SPI_H
#include <util/delay.h>
class SPI {
public:
SPI(void) {
DDRB |= _BV(PB0);
while(1) {
PORTB ^= _BV(PB0);
_delay_ms(1);
}
}
2019-03-22 14:51:52 +00:00
private: int d;
};
#endif