-
Notifications
You must be signed in to change notification settings - Fork 84
The CONFIG_TOP section
Fredrik Hubinette edited this page Sep 3, 2019
·
25 revisions
The CONFIG_TOP section is primarily used to set up defines which enable and disable features in the code. However, it is also used to include a board specific config file. Let's start with the required parts:
First, we must include a board config file, basically, we have to pick one of these lines:
#include "v1_config.h" // TeensySaber V1
#include "v2_config.h" // TeensySaber V2
#include "v3_config.h" // TeensySaber V3
#include "proffieboard_v1_config.h" // Proffieboard V1
#include "proffieboard_v2_config.h" // Proffieboard V2
#define NUM_BLADES 1 #define NUM_BUTTONS 2 #define VOLUME 1000 const unsigned int maxLedsPerStrip = 144; #define CLASH_THRESHOLD_G 1.0 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #endif
Cool Footer