#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#include <stdint.h>

#define DISPLAY_HEIGHT 64
#define DISPLAY_WIDTH  128
#define VBAT_ADC_CTL  41
#define VEXT_CTL 42
#define Vext  VEXT_CTL
#define USER_KEY  1


#define UART0_RX 32
#define UART0_TX 33
#define UART1_RX 4
#define UART1_TX 5
#define UART2_RX 8
#define UART2_TX 9
#define UART3_RX 28
#define UART3_TX 29

#define PWM0      11
#define PWM1      12
#define PWM2      15
#define PWM3      16

#define RGB  40
#define ADC0 4
#define ADC1 5
#define ADC2 8
#define ADC3 11
#define ADC4 47

#define ADC ADC0

#define SCK 4
#define SS 5
#define MOSI 6
#define MISO 7

#define SCK1     0
#define SS1     1
#define MOSI1    2
#define MISO1    3

#define SCK2     8
#define SS2     9
#define MOSI2    10
#define MISO2    11


#define SCL 6
#define SDA 7
#define SCL1 10
#define SDA1 11
#define SCL2 14
#define SDA2 15

#define GPIO0 0
#define GPIO1 1
#define GPIO2 2
#define GPIO3 3
#define GPIO4 4
#define GPIO5 5
#define GPIO6 6
#define GPIO7 7
#define GPIO8 8
#define GPIO9 9
#define GPIO10 10
#define GPIO11 11
#define GPIO12 12
#define GPIO13 13
#define GPIO14 14
#define GPIO15 15
#define GPIO16 16
#define GPIO17 17
#define GPIO18 18
#define GPIO19 19
#define GPIO20 20
#define GPIO21 21
#define GPIO22 22
#define GPIO23 23
#define GPIO24 24
#define GPIO25 25
#define GPIO26 26
#define GPIO27 27
#define GPIO28 28
#define GPIO29 29
#define GPIO30 30
#define GPIO31 31
#define GPIO32 32
#define GPIO33 33
#define GPIO34 34
#define GPIO35 35
#define GPIO36 36
#define GPIO37 37
#define GPIO38 38
#define GPIO39 39
#define GPIO40 40
#define GPIO41 41
#define GPIO42 42
#define GPIO43 43
#define GPIO44 44
#define GPIO45 45
#define GPIO46 46
#define GPIO47 47
#define GPIO48 48
#define GPIO49 49
#define GPIO50 50
#define GPIO51 51
#define GPIO52 52
#define GPIO53 53
#define GPIO54 54
#define GPIO55 55
#define GPIO56 56
#define GPIO57 57
#define GPIO58 58
#define GPIO59 59
#define GPIO60 60
#define GPIO61 61
#define GPIO62 62
#define GPIO63 63

#endif /* Pins_Arduino_h */
