Browse Source

Add example configs. Expand custom menu. (#16286)

- Anet E10
- Geeetech D200
- Geeetech M201
- JGAurora Magic
- MakerFarm Pegasus 12
pull/1/head
Vertabreaker 5 years ago
committed by Scott Lahteine
parent
commit
b841b9bd01
  1. 82
      Marlin/src/lcd/menu/menu_custom.cpp
  2. 2221
      config/examples/Anet/E10/Configuration.h
  3. 2866
      config/examples/Anet/E10/Configuration_adv.h
  4. 2206
      config/examples/Geeetech/D200/Configuration.h
  5. 2866
      config/examples/Geeetech/D200/Configuration_adv.h
  6. 2206
      config/examples/Geeetech/M201/Configuration.h
  7. 2866
      config/examples/Geeetech/M201/Configuration_adv.h
  8. 2218
      config/examples/JGAurora/Magic/Configuration.h
  9. 2866
      config/examples/JGAurora/Magic/Configuration_adv.h
  10. 2223
      config/examples/MakerFarm/Pegasus_12/Configuration.h
  11. 2863
      config/examples/MakerFarm/Pegasus_12/Configuration_adv.h

82
Marlin/src/lcd/menu/menu_custom.cpp

@ -50,20 +50,82 @@ void _lcd_user_gcode(PGM_P const cmd) {
void menu_user() { void menu_user() {
START_MENU(); START_MENU();
BACK_ITEM(MSG_MAIN); BACK_ITEM(MSG_MAIN);
#if defined(USER_DESC_1) && defined(USER_GCODE_1) #define HAS_USER_ITEM(N) (defined(USER_DESC_##N) && defined(USER_GCODE_##N))
ACTION_ITEM_P(PSTR(USER_DESC_1), []{ _lcd_user_gcode(PSTR(USER_GCODE_1 _DONE_SCRIPT)); }); #define USER_ITEM(N) ACTION_ITEM_P(PSTR(USER_DESC_##N), []{ _lcd_user_gcode(PSTR(USER_GCODE_##N _DONE_SCRIPT)); });
#if HAS_USER_ITEM(1)
USER_ITEM(1);
#endif #endif
#if defined(USER_DESC_2) && defined(USER_GCODE_2) #if HAS_USER_ITEM(2)
ACTION_ITEM_P(PSTR(USER_DESC_2), []{ _lcd_user_gcode(PSTR(USER_GCODE_2 _DONE_SCRIPT)); }); USER_ITEM(2);
#endif #endif
#if defined(USER_DESC_3) && defined(USER_GCODE_3) #if HAS_USER_ITEM(3)
ACTION_ITEM_P(PSTR(USER_DESC_3), []{ _lcd_user_gcode(PSTR(USER_GCODE_3 _DONE_SCRIPT)); }); USER_ITEM(3);
#endif #endif
#if defined(USER_DESC_4) && defined(USER_GCODE_4) #if HAS_USER_ITEM(4)
ACTION_ITEM_P(PSTR(USER_DESC_4), []{ _lcd_user_gcode(PSTR(USER_GCODE_4 _DONE_SCRIPT)); }); USER_ITEM(4);
#endif #endif
#if defined(USER_DESC_5) && defined(USER_GCODE_5) #if HAS_USER_ITEM(5)
ACTION_ITEM_P(PSTR(USER_DESC_5), []{ _lcd_user_gcode(PSTR(USER_GCODE_5 _DONE_SCRIPT)); }); USER_ITEM(5);
#endif
#if HAS_USER_ITEM(6)
USER_ITEM(6);
#endif
#if HAS_USER_ITEM(7)
USER_ITEM(7);
#endif
#if HAS_USER_ITEM(8)
USER_ITEM(8);
#endif
#if HAS_USER_ITEM(9)
USER_ITEM(9);
#endif
#if HAS_USER_ITEM(10)
USER_ITEM(10);
#endif
#if HAS_USER_ITEM(11)
USER_ITEM(11);
#endif
#if HAS_USER_ITEM(12)
USER_ITEM(12);
#endif
#if HAS_USER_ITEM(13)
USER_ITEM(13);
#endif
#if HAS_USER_ITEM(14)
USER_ITEM(14);
#endif
#if HAS_USER_ITEM(15)
USER_ITEM(15);
#endif
#if HAS_USER_ITEM(16)
USER_ITEM(16);
#endif
#if HAS_USER_ITEM(17)
USER_ITEM(17);
#endif
#if HAS_USER_ITEM(18)
USER_ITEM(18);
#endif
#if HAS_USER_ITEM(19)
USER_ITEM(19);
#endif
#if HAS_USER_ITEM(20)
USER_ITEM(20);
#endif
#if HAS_USER_ITEM(21)
USER_ITEM(21);
#endif
#if HAS_USER_ITEM(22)
USER_ITEM(22);
#endif
#if HAS_USER_ITEM(23)
USER_ITEM(23);
#endif
#if HAS_USER_ITEM(24)
USER_ITEM(24);
#endif
#if HAS_USER_ITEM(25)
USER_ITEM(25);
#endif #endif
END_MENU(); END_MENU();
} }

2221
config/examples/Anet/E10/Configuration.h

File diff suppressed because it is too large

2866
config/examples/Anet/E10/Configuration_adv.h

File diff suppressed because it is too large

2206
config/examples/Geeetech/D200/Configuration.h

File diff suppressed because it is too large

2866
config/examples/Geeetech/D200/Configuration_adv.h

File diff suppressed because it is too large

2206
config/examples/Geeetech/M201/Configuration.h

File diff suppressed because it is too large

2866
config/examples/Geeetech/M201/Configuration_adv.h

File diff suppressed because it is too large

2218
config/examples/JGAurora/Magic/Configuration.h

File diff suppressed because it is too large

2866
config/examples/JGAurora/Magic/Configuration_adv.h

File diff suppressed because it is too large

2223
config/examples/MakerFarm/Pegasus_12/Configuration.h

File diff suppressed because it is too large

2863
config/examples/MakerFarm/Pegasus_12/Configuration_adv.h

File diff suppressed because it is too large
Loading…
Cancel
Save