Skip to content

Commit 667bb46

Browse files
committed
Config Update
1 parent 67e5fa9 commit 667bb46

2 files changed

Lines changed: 34 additions & 3 deletions

File tree

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* @file LoadConfig.hpp
3+
*/
14
#pragma once
25

36
static_assert(__cplusplus >= 202302L, "C++23 standard or later required.");
@@ -10,11 +13,39 @@ static_assert(__cplusplus >= 202302L, "C++23 standard or later required.");
1013
#include <etl/vector.h>
1114
#include <utility>
1215

13-
// CommonConfig.hpp
16+
/**
17+
* @brief Debugging Setup
18+
* @see
19+
* https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/log.html
20+
*/
21+
#pragma region Debugging Setup
22+
23+
#define PROJECT_ID "WT26L" // CONFIG - Project ID to use with logger
24+
25+
#pragma endregion // Debugging Setup
1426

1527
// MARK: Boards
28+
// Make sure the hardware pins are imported
29+
#include <pins_arduino.h>
30+
#define ESP32S3 2
31+
#define BOARD ESP32S3
32+
#if not(BOARD == ESP32S3)
33+
# warning "Not using production load board!"
34+
#endif
35+
1636
namespace UM_PROS3 {
17-
constexpr uint_fast8_t LED_DATA_PIN = 18;
37+
// Onboard LED
38+
constexpr uint_fast8_t LED_DATA_PIN = RGB_DATA;
39+
40+
// I2C
41+
constexpr uint_fast8_t I2C_SDA_PIN = SDA;
42+
constexpr uint_fast8_t I2C_SCL_PIN = SCL;
43+
44+
// SPI
45+
constexpr uint_fast8_t SPI_CIPO_PIN = MISO; // todo
46+
constexpr uint_fast8_t SPI_CLK_PIN = SCK; // todo
47+
constexpr uint_fast8_t SPI_COPI_PIN = MOSI; // todo
48+
constexpr uint_fast8_t SPI_CS_PIN = SS; // todo
1849
} // namespace UM_PROS3
1950

2051
// MARK: Constants

lib/2026-Controls_Core

0 commit comments

Comments
 (0)