Skip to content

Commit

Permalink
✅ Add build variant hints
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Nov 27, 2024
1 parent a2ae0dd commit 3a47c01
Show file tree
Hide file tree
Showing 12 changed files with 133 additions and 26 deletions.
14 changes: 14 additions & 0 deletions config/examples/Elegoo/Neptune 2/variants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"permute": {
"IS_BOARD_1_3": { "0":"Board <= 1.2", "1":"Board 1.3" },
"IS_2D": { "0":"Single Extruder", "1":"Neptune 2D" },
"IS_BMG": { "0":"Standard Extruder", "1":"BMG Extruder" },
"USB_MOD": { "0":"No USB Mods", "1":"Native USB Mods" },
},
"default": {
"IS_BOARD_1_3": 0,
"IS_2D": 0,
"IS_BMG": 0,
"USB_MOD": 0
}
}
19 changes: 19 additions & 0 deletions config/examples/Simulator/variants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"groups": [{
"type": "exclusive",
"options": [
"REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER",
"REPRAP_DISCOUNT_SMART_CONTROLLER",
"TFT_CLASSIC_UI",
"TFT_COLOR_UI",
"TFT_LVGL_UI",
],
}],
"default": {
"REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER": 1,
"REPRAP_DISCOUNT_SMART_CONTROLLER": 0,
"TFT_CLASSIC_UI": 0,
"TFT_COLOR_UI": 0,
"TFT_LVGL_UI": 0
}
}
15 changes: 15 additions & 0 deletions config/examples/TinyBoy2/variants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"groups": [{
"type": "exclusive",
"required": 1,
"options": [ "TB2_L10", "TB2_L16" ],
}],
"permute": {
"TB2_HEATBED_MOD": { "0":"Standard Bed", "1":"TB2 Heatbed Mod" }
},
"default": {
"TB2_L10": 1,
"TB2_L16": 0,
"TB2_HEATBED_MOD": 1
}
}
23 changes: 10 additions & 13 deletions config/examples/Velleman/K8200 Upgraded/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,10 @@
// Full Graphic Controller
// https://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
// or https://www.open-electronics.org/full-graphic-smart-controller-display-for-3drag-3dprinter/
#define FULLGRAPHIC_CONTROLLER_LCD_SD
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

// K8204 Z axis upgrade rod and coupler
#define K8200_K8204
// K8203 direct drive extruder -> TODO
//#define K8200_K8203

//===========================================================================
//============================= Getting Started =============================
Expand Down Expand Up @@ -2726,7 +2724,7 @@
// @section interface

// K8200: for Display VM8201 with SD slot
#if ANY(K8200_VM8201, FULLGRAPHIC_CONTROLLER_LCD_SD)
#if ANY(K8200_VM8201, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)

/**
* LCD LANGUAGE
Expand Down Expand Up @@ -2787,13 +2785,13 @@
// produce one step. Should be increased for high-resolution encoders.
//
#define ENCODER_PULSES_PER_STEP 4 // K8200_VM8201: four steps per encoder step
// FULLGRAPHIC_CONTROLLER_LCD_SD: four steps per menu item

//
// Use this option to override the number of step signals required to
// move between next/prev menu items.
//
#define ENCODER_STEPS_PER_MENU_ITEM 1 // K8200_VM8201: One step per menu item
// FULLGRAPHIC_CONTROLLER_LCD_SD: One step per menu item


/**
* Encoder Direction Options
Expand All @@ -2810,9 +2808,10 @@
//
// Set this option if CLOCKWISE causes values to DECREASE
//
#if ENABLED(FULLGRAPHIC_CONTROLLER_LCD_SD)
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define REVERSE_ENCODER_DIRECTION
#endif

//
// This option reverses the encoder direction for navigating LCD menus.
//
Expand All @@ -2822,6 +2821,7 @@
#if ENABLED(K8200_VM8201)
#define REVERSE_MENU_DIRECTION // K8200: for Display VM8201 encoder on right side
#endif

//
// This option reverses the encoder direction for Select Screen.
//
Expand All @@ -2848,6 +2848,8 @@
#define INDIVIDUAL_AXIS_HOMING_MENU
//#define INDIVIDUAL_AXIS_HOMING_SUBMENU

#endif // K8200_VM8201, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

//
// SPEAKER/BUZZER
//
Expand Down Expand Up @@ -3049,11 +3051,8 @@
// RepRapDiscount FULL GRAPHIC Smart Controller
// https://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
//
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER


#if ENABLED(FULLGRAPHIC_CONTROLLER_LCD_SD)
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
#endif
//
// K.3D Full Graphic Smart Controller
//
Expand Down Expand Up @@ -3193,8 +3192,6 @@
//
//#define SILVER_GATE_GLCD_CONTROLLER

#endif // K8200_VM8201, FULLGRAPHIC_CONTROLLER_LCD_SD

//
// eMotion Tech LCD with SD
// https://www.reprap-france.com/produit/1234568748-ecran-graphique-128-x-64-points-2-1
Expand Down
15 changes: 15 additions & 0 deletions config/examples/Velleman/K8200 Upgraded/variants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"groups": [{
"type": "exclusive",
"required": 1,
"options": [ "K8200_VM8201", "REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER" ],
}],
//"permute": {
// "K8200_VM8204": { "0":"Standard Z Axis", "1":"K8204 Z Axis Upgrade" }
//},
"default": {
"K8200_VM8204": 1,
"K8200_VM8201": 0,
"REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER": 1
}
}
7 changes: 2 additions & 5 deletions config/examples/Velleman/K8200/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@
// K8204 Z axis upgrade rod and coupler -> TODO
//#define K8200_K8204

// K8203 direct drive extruder -> TODO
//#define K8200_K8203

//
// Full Graphic Controller
// e.g., https://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
Expand Down Expand Up @@ -2852,6 +2849,8 @@
#define INDIVIDUAL_AXIS_HOMING_MENU
//#define INDIVIDUAL_AXIS_HOMING_SUBMENU

#endif // K8200_VM8201 || REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

//
// SPEAKER/BUZZER
//
Expand Down Expand Up @@ -3195,8 +3194,6 @@
//
//#define SILVER_GATE_GLCD_CONTROLLER

#endif // K8200_VM8201 || REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

//
// eMotion Tech LCD with SD
// https://www.reprap-france.com/produit/1234568748-ecran-graphique-128-x-64-points-2-1
Expand Down
15 changes: 15 additions & 0 deletions config/examples/Velleman/K8200/variants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"groups": [{
"type": "exclusive",
"required": 1,
"options": [ "K8200_VM8201", "REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER" ],
}],
//"permute": {
// "K8200_VM8204": { "0":"Standard Z Axis", "1":"K8204 Z Axis Upgrade" }
//},
"default": {
"K8200_VM8204": 0,
"K8200_VM8201": 0,
"REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,17 @@
/**
* Choose your version:
*/
// normal size or plus?

// Normal or Plus size?
#define ANYCUBIC_KOSSEL_PLUS

// Anycubic Probe version 1 or 2 see README.md; 0 for no probe
#define ANYCUBIC_PROBE_VERSION 2

// Heated Bed:
// 0 ... no heated bed
// 1 ... aluminium heated bed with "BuildTak-like" sticker
// 2 ... ultrabase heated bed
// 0 ... No heated bed
// 1 ... Aluminium heated bed with "BuildTak-like" sticker
// 2 ... Ultrabase heated bed
#define ANYCUBIC_KOSSEL_ENABLE_BED 2

/**
Expand Down
10 changes: 10 additions & 0 deletions config/examples/delta/Anycubic/Kossel Linear Plus/variants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ANYCUBIC_KOSSEL_PLUS": { "0":"Kossel", "1":"Kossel Plus" },
"ANYCUBIC_PROBE_VERSION": { "0":"No Probe", "1":"Anycubic Probe V1", "2":"Anycubic Probe V2" },
"ANYCUBIC_KOSSEL_ENABLE_BED": { "0":"No Bed", "1":"Aluminum Bed", "2":"Ultrabase Bed" },
"default": {
"ANYCUBIC_KOSSEL_PLUS": 1,
"ANYCUBIC_PROBE_VERSION": 2,
"ANYCUBIC_KOSSEL_ENABLE_BED": 2
}
}
9 changes: 5 additions & 4 deletions config/examples/delta/Anycubic/Kossel/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,17 @@
/**
* Choose your version:
*/
// normal size or plus?

// Normal or Plus size?
//#define ANYCUBIC_KOSSEL_PLUS

// Anycubic Probe version 1 or 2 see README.md; 0 for no probe
#define ANYCUBIC_PROBE_VERSION 0

// Heated Bed:
// 0 ... no heated bed
// 1 ... aluminium heated bed with "BuildTak-like" sticker
// 2 ... ultrabase heated bed
// 0 ... No heated bed
// 1 ... Aluminium heated bed with "BuildTak-like" sticker
// 2 ... Ultrabase heated bed
#define ANYCUBIC_KOSSEL_ENABLE_BED 0

/**
Expand Down
12 changes: 12 additions & 0 deletions config/examples/delta/Anycubic/Kossel/variants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"permute": {
"ANYCUBIC_KOSSEL_PLUS": { "0":"Kossel", "1":"Kossel Plus" },
"ANYCUBIC_PROBE_VERSION": { "0":"No Probe", "1":"Anycubic Probe V1", "2":"Anycubic Probe V2" },
"ANYCUBIC_KOSSEL_ENABLE_BED": { "0":"No Bed", "1":"Aluminum Bed", "2":"Ultrabase Bed" }
},
"default": {
"ANYCUBIC_KOSSEL_PLUS": 0,
"ANYCUBIC_PROBE_VERSION": 0,
"ANYCUBIC_KOSSEL_ENABLE_BED": 0
}
}
11 changes: 11 additions & 0 deletions config/examples/delta/Velleman/K8800/variants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"groups": [{
"type": "exclusive",
"required": 1,
"options": [ "K8800_UBL", "K8800_BILINEAR" ],
}],
"default": {
"K8800_UBL": 1,
"K8800_BILINEAR": 0
}
}

0 comments on commit 3a47c01

Please sign in to comment.