-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpins.h
43 lines (35 loc) · 816 Bytes
/
pins.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* File: pins.h
* Author: [email protected]
*
* Created on 1. April 2023, 19:25
*/
#ifndef PINS_H
#define PINS_H
#include <avr/io.h>
/* SPI */
#define DDR_SPI DDRB
#define PORT_SPI PORTB
#define PIN_SS PB2
#define PIN_MOSI PB3
#define PIN_MISO PB4
#define PIN_SCK PB5
/* I2C */
#define DDR_I2C DDRC
#define PORT_I2C PORTC
#define PIN_SCL PC5
#define PIN_SDA PC4
/* Radio Int */
#define PIN_RINT PD2 // radio interrupt
/* Radio SPI */
#define DDR_RFM DDRB
#define PORT_RFM PORTB
#define PIN_RCS PB1 // radio chip select
#define PIN_RRST PB0 // radio reset
/* Display */
#define DDR_DISP DDRD
#define PORT_DISP PORTD
#define PIN_DCS PD5 // display chip select
#define PIN_DDC PD6 // display data/command
#define PIN_DRST PD7 // display reset
#endif /* PINS_H */