// General hardware definitions #pragma once // Keys #define KEY_1 1 // Key or touchpad #define KEY_2 2 // Key or touchpad // I2S audio output -> PCM5102 DAC #define I2S_DOUT 4 // data out #define I2S_BCLK 5 // bit clock #define I2S_LRC 6 // left right channel select #define I2S_XSMT 7 // PCM5102 soft mute // SPI for SD-Card; VSPI pins for higher performance #define SD_CS 10 #define SD_MOSI 11 #define SD_MISO 13 #define SD_SCK 12 // I2C for control interface #define I2C_SDA 8 #define I2C_CLK 9 // CAN bus for NMEA2000 connection #define CAN_RX 47 #define CAN_TX 48 // RS485 for NMEA0183 connection / UART1 #define SER_RX 18 #define SER_TX 17 // I2C Addresses // Address of DAC module // Address of switchbank