From 3cabe1ef526dda3b681bcdae375a65a0b2d3fd41 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Sun, 15 Dec 2019 05:03:44 +0900 Subject: [PATCH] preset added. for easier conf. --- src/main.cpp | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c6023bf..190ede3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,25 +38,49 @@ // and then, this 32 bytes will be flying in the clouds. // -//===================== -#define DISABLE_AP +//===================== +// +// 'DISABLE_AP' // --> disabling AP is for teensy audio samplers. // they need this to reduce noise from AP beacon signals. // but, then they cannot build-up net. by themselves. // we need who can do AP.. // ==> TODO! just prepare some 'dummy' postmans around. w/ AP activated. -#define DISABLE_I2C_REQ +// +// 'DISABLE_I2C_REQ' // --> a quirk.. due to bi-directional I2C hardship. // ideally, we want to make this sampler node also speak. // but, I2C doesn't work. maybe middleware bug.. we later want to change to diff. proto. // for example, UART or so. // ==> BEWARE! yet, still we need to take off this.. for 'osc' node. -// #define SET_ROOT -#define SET_CONTAINSROOT +// +// 'SET_ROOT' +// 'SET_CONTAINSROOT' // --> for the network stability // declare 1 root node and branches(constricted to 'contains the root') // to improve the stability of the net -//==================== +// +//==================== + +//===================== +// (1) the backbone AP +#if 1 +#define DISABLE_I2C_REQ +#define SET_CONTAINSROOT +// (2) osc client (the ROOT) +#elif 0 +#define SET_ROOT +#define SET_CONTAINSROOT +// (3) sampler client +#elif 0 +#define DISABLE_AP +#define DISABLE_I2C_REQ +// (4) network monitor +#elif 0 +#define SET_CONTAINSROOT +// +#endif +//==================== //======================== #define MESH_SSID "cricket-crackers"