feat(ex02): done

This commit is contained in:
Maix0 2026-04-24 14:43:35 +02:00
parent b7580c043c
commit 0fe7dbdc0f
23 changed files with 1469 additions and 0 deletions

16
ex02/include/spi.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef SPI_H
#define SPI_H
#define SPI_DDR DDRB
#define CS PINB2
#define MOSI PINB3
#define MISO PINB4
#define SCK PINB5
#include "mystd.h"
void spi_init(void);
void spi_write(uint8_t data);
uint8_t spi_read(void);
#endif /* SPI_H */