smart_alarm/spi.h
2025-09-14 09:07:37 +02:00

17 lines
452 B
C

#ifndef SMART_ALARM_SPI_H
#define SMART_ALARM_SPI_H
// SPI Defines
// We are going to use SPI 0, and allocate it to the following GPIO pins
// Pins can be changed, see the GPIO function select table in the datasheet for
// information on GPIO assignments
#define SPI_PORT spi0
#define PIN_MISO 16
#define PIN_CS 17
#define PIN_SCK 18
#define PIN_MOSI 19
#define PIN_DC 16
#define PIN_RST 20
#define SPI_CLOCK_HZ 12000000
#endif //SMART_ALARM_SPI_H