initial commit

we got the stuff
This commit is contained in:
sam 2022-03-06 23:21:45 +02:00
commit e3a8d949b5
4 changed files with 3373 additions and 0 deletions

96
_Statusscreen.h Normal file
View File

@ -0,0 +1,96 @@
#pragma once
#define STATUS_LOGO_WIDTH 40
const unsigned char status_logo_bmp[] PROGMEM = {
B00000000,B00000000,B00000001,B11000000,B00000000, // .......................###..............
B00000000,B00000000,B00000111,B11100000,B00000000, // .....................######.............
B00000000,B00011100,B00011100,B00110000,B01010000, // ...........###.....###....##.....#.#....
B00000000,B00111110,B00110000,B00010000,B10101000, // ..........#####...##.......#....#.#.#...
B00000000,B00110011,B01100000,B00010000,B10001000, // ..........##..##.##........#....#...#...
B00000000,B00100001,B11000000,B00100000,B01010000, // ..........#....###........#......#.#....
B00000111,B10100000,B11000000,B01011100,B00100000, // .....####.#.....##.......#.###....#.....
B00001111,B11010000,B10000001,B10111110,B00000000, // ....######.#....#......##.#####.........
B00011000,B01001100,B00000111,B00100011,B00001010, // ...##....#..##.......###..#...##....#.#.
B00110000,B00010000,B00000010,B01000001,B10001110, // ..##.......#..........#..#.....##...###.
B01100000,B00000000,B00000001,B00000000,B10000100, // .##....................#........#....#..
B01100000,B00000000,B00000000,B00000000,B11000000, // .##.............................##......
B01000000,B00000000,B00000000,B00000000,B01000000, // .#...............................#......
B11000001,B00110001,B00010001,B10000000,B01100000, // ##.....#..##...#...#...##........##.....
B11000110,B01110010,B00001001,B11010000,B00100000, // ##...##..###..#.....#..###.#......#.....
B10000000,B01100010,B00101000,B11001000,B00100000, // #........##...#...#.#...##..#.....#.....
B10000010,B00000010,B01010000,B00010100,B00110000, // #.....#.......#..#.#.......#.#....##....
B10000100,B00011001,B10000011,B00000000,B00010000, // #....#.....##..##.....##...........#....
B10000010,B00100100,B00000100,B10001000,B00010000, // #.....#...#..#.......#..#...#......#....
B10000010,B01000000,B00000000,B01001000,B00010000, // #.....#..#...............#..#......#....
B10000010,B01000000,B00000000,B01001000,B00010000, // #.....#..#...............#..#......#....
B10000010,B01000100,B00000100,B01001000,B00010000, // #.....#..#...#.......#...#..#......#....
B10000010,B01000100,B00000100,B01001000,B00010000, // #.....#..#...#.......#...#..#......#....
B10000010,B01000100,B11100100,B01001000,B00010000, // #.....#..#...#..###..#...#..#......#....
B10000010,B01000100,B01000100,B01001000,B00110000, // #.....#..#...#...#...#...#..#.....##....
B11001001,B00100000,B00000000,B10010010,B00100000, // ##..#..#..#.............#..#..#...#.....
B01111001,B00000000,B10100000,B00010011,B11100000, // .####..#........#.#........#..#####.....
B00110000,B10000000,B01000000,B00100001,B11000000 // ..##....#........#........#....###......
};
#define STATUS_HOTEND1_WIDTH 16
const unsigned char status_hotend_a_bmp[] PROGMEM = {
B00111111,B10001010, // ..#######...#.#.
B00100000,B10010100, // ..#.....#..#.#..
B00100000,B10000000, // ..#.....#.......
B11110001,B11100101, // ####...####..#.#
B11111111,B11101010, // ###########.#.#.
B11101110,B11100000, // ###.###.###.....
B11101110,B11101010, // ###.###.###.#.#.
B11111111,B11100101, // ###########..#.#
B01110101,B11000000, // .###.#.###......
B00111011,B10001010, // ..###.###...#.#.
B00011111,B00100100, // ...#####..#..#..
B00001110,B00010000 // ....###....#....
};
const unsigned char status_hotend_b_bmp[] PROGMEM = {
B00111111,B10000000, // ..#######.......
B00100000,B10000000, // ..#.....#.......
B00100000,B10000000, // ..#.....#.......
B11100000,B11100000, // ###.....###.....
B10000000,B00100000, // #.........#.....
B10000000,B00100000, // #.........#.....
B10000000,B00100000, // #.........#.....
B10011001,B10100010, // #..##..##.#...#.
B01000000,B01000101, // .#.......#...#.#
B00100010,B10010010, // ..#...#.#..#..#.
B00010001,B00101000, // ...#...#..#.#...
B00001110,B00010000 // ....###....#....
};
#define STATUS_BED_WIDTH 24
const unsigned char status_bed_bmp[] PROGMEM = {
B00000000,B00000000,B00000000, // ........................
B00000000,B00000000,B00000000, // ........................
B00000000,B00000000,B00000000, // ........................
B00000000,B00000000,B00000000, // ........................
B00010000,B00000000,B00011100, // ...#...............###..
B00101000,B00101010,B00001010, // ..#.#.....#.#.#.....#.#.
B00010000,B00011101,B01000101, // ...#.......###.#.#...#.#
B00000000,B00100010,B10100101, // ..........#...#.#.#..#.#
B01001100,B01000001,B11101001, // .#..##...#.....####.#..#
B10101011,B10110000,B00010001, // #.#.#.###.##.......#...#
B01001000,B00000000,B00000010, // .#..#.................#.
B00000111,B11111111,B11111100 // .....#################..
};
const unsigned char status_bed_on_bmp[] PROGMEM = {
B01110000,B00000000,B00000000, // .###....................
B10001000,B00000000,B00000000, // #...#...................
B01001001,B00001010,B00000001, // .#..#..#....#.#........#
B10010010,B10010100,B00000001, // #..#..#.#..#.#.........#
B10100010,B01111010,B00000011, // #.#...#..####.#.......##
B01010001,B00100101,B01000011, // .#.#...#..#..#.#.#....##
B00111100,B10011010,B10100101, // ..####..#..##.#.#.#..#.#
B00000000,B01011001,B11101001, // .........#.##..####.#..#
B00000111,B11011000,B00010010, // .....#####.##......#..#.
B00000100,B00000000,B00000010, // .....#................#.
B00000011,B11100111,B10001100, // ......#####..####...##..
B00000000,B00101000,B11101000 // ..........#.#...###.#...
};

3126
marlin-6x12-3.bdf Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,69 @@
237a238,301
>
> #elif ENABLED(FYSETC_MINI_12864_2_1)
>
> #error "CAUTION! FYSETC_MINI_12864_2_1 / MKS_MINI_12864_V3 / BTT_MINI_12864_V1 requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. Comment out this line to continue."
>
> /**
> * FYSETC_MINI_12864_2_1 / MKS_MINI_12864_V3 / BTT_MINI_12864_V1 display pinout
> *
> * Board Display
> * ------ ------
> * PB5 |10 9 | PA15 (BEEP) |10 9 | BTN_ENC
> * PA9 | 8 7 | RESET LCD_CS | 8 7 | LCD A0
> * PA10 | 6 5 | PB9 LCD_RST | 6 5 | RED
> * PB8 | 4 3 | PB15 (GREEN) | 4 3 | (BLUE)
> * GND | 2 1 | 5V GND | 2 1 | 5V
> * ------ ------
> * EXP1 EXP1
> *
> * --- ------
> * RST | 1 | (MISO) |10 9 | SCK
> * (RX2) PA2 | 2 | BTN_EN1 | 8 7 | (SS)
> * (TX2) PA3 | 3 | BTN_EN2 | 6 5 | MOSI
> * GND | 4 | (CD) | 4 3 | (RST)
> * 5V | 5 | (GND) | 2 1 | (KILL)
> * --- ------
> * TFT EXP2
> *
> * Needs custom cable:
> *
> * Board Display
> *
> * EXP1-1 ----------- EXP1-1
> * EXP1-2 ----------- EXP1-2
> * EXP1-3 ----------- EXP2-6
> * EXP1-4 ----------- EXP1-5
> * EXP1-5 ----------- EXP2-8
> * EXP1-6 ----------- EXP1-6
> * EXP1-8 ----------- EXP1-8
> * EXP1-9 ----------- EXP1-9
> * EXP1-10 ----------- EXP1-7
> *
> * TFT-2 ----------- EXP2-9
> * TFT-3 ----------- EXP2-5
> *
> * for backlight configuration see steps 2 (V2.1) and 3 in https://wiki.fysetc.com/Mini12864_Panel/
> */
>
> #define LCD_PINS_RS PA9 // CS
> #define LCD_PINS_ENABLE PA3 // MOSI
> #define LCD_BACKLIGHT_PIN -1
> #define NEOPIXEL_PIN PB8
> #define LCD_CONTRAST 255
> #define LCD_RESET_PIN PA10
>
> #define DOGLCD_CS PA9
> #define DOGLCD_A0 PB5
> #define DOGLCD_SCK PA2
> #define DOGLCD_MOSI PA3
>
> #define BTN_ENC PA15
> #define BTN_EN1 PB9
> #define BTN_EN2 PB15
>
> #define FORCE_SOFT_SPI
240c304
< #error "Only CR10_STOCKDISPLAY, ZONESTAR_LCD, ENDER2_STOCKDISPLAY, MKS_MINI_12864, and TFTGLCD_PANEL_(SPI|I2C) are currently supported on the BIGTREE_SKR_MINI_E3."
---
> #error "Only CR10_STOCKDISPLAY, ZONESTAR_LCD, ENDER2_STOCKDISPLAY, MKS_MINI_12864, TFTGLCD_PANEL_(SPI|I2C), FYSETC_MINI_12864_2_1, MKS_MINI_12864_V3, and BTT_MINI_12864_V1 are currently supported on the BIGTREE_SKR_MINI_E3."

82
setup-steps.txt Normal file
View File

@ -0,0 +1,82 @@
steps for setting up marlin!
- grab Configuration.h and Configuration_adv.h for
Creality/Ender 3 Pro/BTT SKR Mini E3 v2.0 from Marlin configurations repo
- add _Statusscreen.h from printybuny repo
- apply pins_BTT_SKR_MINI_E3_common.h.patch
- copy marlin-6x12-3.bdf over the original in buildroot/share/fonts/
- run get-bdf2u8g.sh in buildroot/share/fonts
followed by genallfonts.sh (this takes a while)
in platformio.ini
- set default_envs to STM32F103RC_btt
in Configuration.h
- enable CUSTOM_STATUS_SCREEN_IMAGE
- change CUSTOM_MACHINE_NAME to "printybuny"
- enable PIDTEMPBED
- enable BLTOUCH
- set NOZZLE_TO_PROBE_OFFSET to { -55, -13, 0 }
- set PROBING_MARGIN to 8
- set MANUAL_Y_HOME_POS to -9
- set Y_BED_SIZE to 215
- enable Z_SAFE_HOMING
- set Z_AFTER_HOMING to 4
- enable AUTO_BED_LEVELING_BILINEAR, disable MESH_BED_LEVELING
- enable PREHEAT_BEFORE_LEVELING
- disable LEVELING_NOZZLE_TEMP
- set LEVELING_BED_TEMP to 60
- set GRID_MAX_POINTS_X to 6
- enable BTT_MINI_12864_V1, disable CR10_STOCKDISPLAY
- set PREHEAT_1_TEMP_HOTEND to 180
- set PREHEAT_1_TEMP_BED to 40
- set PREHEAT_1_FAN_SPEED to 0
- set PREHEAT_2_LABEL to "PETG"
- set PREHEAT_2_TEMP_HOTEND to 220
- set PREHEAT_2_TEMP_BED to 60
- set PREHEAT_2_FAN_SPEED to 0
- set PREHEAT_3_LABEL to "TPU"
- set PREHEAT_3_TEMP_HOTEND to 180
- set PREHEAT_3_TEMP_BED to 45
- set PREHEAT_3_FAN_SPEED to 0
- set PREHEAT_4_LABEL to "HT"
- set PREHEAT_4_TEMP_HOTEND to 220
- set PREHEAT_4_TEMP_BED to 100
- set PREHEAT_4_FAN_SPEED to 0
- enable NEOPIXEL_LED
- set NEOPIXEL_TYPE to NEO_GRBW
- set NEOPIXEL_PIN to PB8
- set NEOPIXEL2_TYPE to NEO_GRBW
- set NEOPIXEL2_PIN to PA8
- set NEOPIXEL_PIXELS to 30
- set NEOPIXEL_BRIGHTNESS to 255
- enable NEOPIXEL2_SEPARATE
- set NEOPIXEL2_PIXELS to 8
- set NEOPIXEL2_BRIGHTNESS to 127
- set NEOPIXEL_BKGD_INDEX_FIRST to 2
- set NEOPIXEL_BKGD_INDEX_LAST to 30
- set NEOPIXEL_BKGD_COLOR to { 10, 255, 40, 0 }
- enable NEOPIXEL_BKGD_ALWAYS_ON
in Configuration_adv.h
- set FAN_MIN_PWM to 40
- enable FAST_PWM_FAN
- set FAST_PWM_FAN_FREQUENCY to 40
- set BOOTSCREEN_TIMEOUT to 1000
- enable BABYSTEP_ZPROBE_OFFSET
- set ENCODER_10X_STEPS_PER_SEC to 100, ENCODER_100X_STEPS_PER_SEC to 200
- disable XYZ_HOLLOW_FRAME and MENU_HOLLOW_FRAME
- enable LED_CONTROL_MENU
- enable LED_COLOR_PRESETS
- enable NEO2_COLOR_PRESETS
- set LED_USER_PRESET_X to 0, and brightness to 255
- enable LED_USER_PRESET_STARTUP
- set NEO2_USER_PRESET_X to 0, except WHITE to 255, and brightness to 127
build and copy .pio/build/STM32F103RC_btt/firmware.bin over to
the printer microSD card to install the new firmware!