Skip to content

Commit 878c91f

Browse files
author
Geoffroy Arenou
committed
Fix Hardware config include
1 parent 45fcb63 commit 878c91f

4 files changed

Lines changed: 24 additions & 4 deletions

File tree

include/Hardware_Config.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#ifndef HARDWARE_CONFIG_H
22
#define HARDWARE_CONFIG_H
3+
#include <cstddef>
4+
// Copy this file to your include project folder and change it's name to Hardware_Config.h
5+
// Then you can modify the one in your project at your convenience
6+
7+
#ifdef SIMULATOR
8+
constexpr bool simulation = true;
9+
#else
10+
constexpr bool simulation = false;
11+
#endif
312

413
namespace Hardware_Config
514
{
@@ -23,5 +32,18 @@ namespace Hardware_Config
2332
Bras = 2, // Servo pour manger les noisettes
2433
BroadCast = 0xFE // Broadcast ID pour communiquer avec tous les servos
2534
};
35+
36+
//******************** Pins IHM
37+
constexpr size_t PIN_SWITCH = 14;
38+
constexpr size_t PIN_TEAM = 13;
39+
constexpr size_t PIN_BAU = 15;
40+
constexpr size_t PIN_START = 16;
41+
42+
//******************** Pins LED - RGB
43+
constexpr size_t PIN_RGB_LED = 38;
44+
constexpr size_t PIN_WS2812_LED = 12;
45+
46+
//******************** Pins Enable Power
47+
constexpr size_t PIN_EN_MCU = 3;
2648
}
2749
#endif

include/main.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef MAIN_H
22
#define MAIN_H
33

4-
#include "Hardware_Config.h"
5-
64
#include "ESP32_Hardware.h"
75
#include "ESP32_Helper.h"
86

0 commit comments

Comments
 (0)