Skip to content

Commit

Permalink
Basic bambu implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Oct 29, 2024
1 parent b1138d9 commit 4207d82
Show file tree
Hide file tree
Showing 19 changed files with 1,010 additions and 233 deletions.
7 changes: 5 additions & 2 deletions CYD-Klipper/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ lib_deps =
bblanchon/ArduinoJson@^7.0.0
plageoj/UrlEncode@^1.0.1
erriez/ErriezCRC32 @ ^1.0.1
knolleary/PubSubClient@^2.8
monitor_filters = esp32_exception_decoder
build_flags =
-DLV_CONF_PATH="../../../../src/conf/lv_conf.h"
Expand All @@ -33,6 +34,7 @@ lib_deps =
https://github.com/PaulStoffregen/XPT2046_Touchscreen.git
bblanchon/ArduinoJson@^7.0.0
plageoj/UrlEncode@^1.0.1
knolleary/PubSubClient@^2.8

[env:esp32-3248S035C]
board = esp32-3248S035C
Expand All @@ -43,6 +45,7 @@ lib_deps =
https://github.com/OperatorB/gt911-arduino-fixed-reset.git
bblanchon/ArduinoJson@^7.0.0
plageoj/UrlEncode@^1.0.1
knolleary/PubSubClient@^2.8

[env:esp32-3248S035C-V]
board = esp32-3248S035C-vertical
Expand All @@ -53,6 +56,7 @@ lib_deps =
https://github.com/OperatorB/gt911-arduino-fixed-reset.git
bblanchon/ArduinoJson@^7.0.0
plageoj/UrlEncode@^1.0.1
knolleary/PubSubClient@^2.8

[env:esp32-2432S024C-SD]
board = esp32-2432S024C-smartdisplay
Expand All @@ -79,5 +83,4 @@ board = esp32-4827S043C-smartdisplay
board = esp32-4827S043C-smartdisplay

[env:esp32-8048S043C-SD]
board = esp32-8048S043C-smartdisplay

board = esp32-8048S043C-smartdisplay
1 change: 1 addition & 0 deletions CYD-Klipper/src/conf/global_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ void global_config_add_new_printer()
new_config->setup_complete = false;
new_config->ip_configured = false;
new_config->auth_configured = false;
new_config->printer_type = PrinterType::PrinterTypeNone;

new_config->printer_name[0] = 0;
new_config->klipper_host[0] = 0;
Expand Down
12 changes: 7 additions & 5 deletions CYD-Klipper/src/conf/global_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ enum {
};

enum PrinterType {
PrinterTypeKlipper = 0,
PrinterTypeKlipperSerial = 1,
PrinterTypeBambu = 2,
PrinterTypeOctoprint = 3,
PrinterTypeNone = 0,
PrinterTypeKlipper = 1,
PrinterTypeKlipperSerial = 2,
PrinterTypeBambuLocal = 3,
PrinterTypeBambuCloud = 3,
PrinterTypeOctoprint = 4,
};

typedef struct {
Expand All @@ -49,7 +51,7 @@ typedef struct {
char printer_name[25];
char klipper_host[65];
char klipper_auth[33];
unsigned short klipper_port;
unsigned int klipper_port;

unsigned char color_scheme;

Expand Down
Loading

0 comments on commit 4207d82

Please sign in to comment.