fixed all exercices

This commit is contained in:
Maix0 2026-04-24 18:28:21 +02:00
parent 5763bbb065
commit 2f91952d78
49 changed files with 3151 additions and 24 deletions

16
ex03/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 */