Initial commit

This commit is contained in:
2024-10-25 21:01:00 +02:00
parent 3f7932870d
commit 42a09c0a91
2865 changed files with 1662903 additions and 0 deletions
.devcontainer
.editorconfig.gitattributes
.github
.gitignore
.vscode
LICENSEMakefile
Marlin
Configuration.hConfiguration_adv.hMakefileMarlin.inoVersion.hconfig.ini
lib
src
HAL
AVR
DUE
ESP32
HAL.h
LINUX
LPC1768
NATIVE_SIM
SAMD21
SAMD51
STM32
STM32F1
TEENSY31_32
TEENSY35_36
TEENSY40_41
platforms.h
shared
MarlinCore.cppMarlinCore.h
core
feature
adc
ammeter.cppammeter.hbabystep.cppbabystep.hbacklash.cppbacklash.hbaricuda.cppbaricuda.h
bedlevel
binary_stream.cppbinary_stream.hbltouch.cppbltouch.hcancel_object.cppcancel_object.hcaselight.cppcaselight.hclosedloop.cppclosedloop.hcontrollerfan.cppcontrollerfan.hcooler.cppcooler.h
dac
digipot
direct_stepping.cppdirect_stepping.he_parser.cppe_parser.heasythreed_ui.cppeasythreed_ui.hencoder_i2c.cppencoder_i2c.hethernet.cppethernet.hfancheck.cppfancheck.hfanmux.cppfanmux.hfilwidth.cppfilwidth.hfwretract.cppfwretract.hhost_actions.cpphost_actions.hhotend_idle.cpphotend_idle.hjoystick.cppjoystick.h
leds
max7219.cppmax7219.hmeatpack.cppmeatpack.hmixing.cppmixing.h
mmu
password
pause.cpppause.hpower.cpppower.hpower_monitor.cpppower_monitor.hpowerloss.cpppowerloss.hprobe_temp_comp.cppprobe_temp_comp.hrepeat.cpprepeat.hrunout.cpprunout.hsolenoid.cppsolenoid.hspindle_laser.cppspindle_laser.hspindle_laser_types.hstepper_driver_safety.cppstepper_driver_safety.htmc_util.cpptmc_util.htramming.cpptramming.htwibus.cpptwibus.hx_twist.cppx_twist.hz_stepper_align.cppz_stepper_align.h
gcode
bedlevel
calibrate
config
control
eeprom
feature
gcode.cppgcode.hgcode_d.cpp
geometry
host
lcd
motion
parser.cppparser.h
probe
queue.cppqueue.h
scara
sd
stats
temp
units
inc
lcd
HD44780
TFTGLCD
buttons.h
dogm
e3v2
extui
anycubic_chiron
anycubic_i3mega
dgus
dgus_reloaded
example
ftdi_eve_touch_ui
archim2-flash
bioprinter
cocoa_press
compat.hconfig.hftdi_eve_extui.cpp
ftdi_eve_lib
generic
about_screen.cppabout_screen.hadvanced_settings_menu.cppadvanced_settings_menu.halert_dialog_box.cppalert_dialog_box.hbacklash_compensation_screen.cppbacklash_compensation_screen.hbase_numeric_adjustment_screen.cppbase_numeric_adjustment_screen.hbase_screen.cppbase_screen.hbed_mesh_base.cppbed_mesh_base.hbed_mesh_edit_screen.cppbed_mesh_edit_screen.hbed_mesh_view_screen.cppbed_mesh_view_screen.hboot_screen.cppboot_screen.hcase_light_screen.cppcase_light_screen.hchange_filament_screen.cppchange_filament_screen.hconfirm_abort_print_dialog_box.cppconfirm_abort_print_dialog_box.hconfirm_auto_calibration_dialog_box.cppconfirm_auto_calibration_dialog_box.hconfirm_erase_flash_dialog_box.cppconfirm_erase_flash_dialog_box.hconfirm_start_print_dialog_box.cppconfirm_start_print_dialog_box.hconfirm_user_request_alert_box.cppconfirm_user_request_alert_box.hcustom_user_menus.cppcustom_user_menus.hdefault_acceleration_screen.cppdefault_acceleration_screen.hdeveloper_menu.cppdeveloper_menu.hdialog_box_base_class.cppdialog_box_base_class.hdisplay_tuning_screen.cppdisplay_tuning_screen.hendstop_state_screen.cppendstop_state_screen.hfeedrate_percent_screen.cppfeedrate_percent_screen.hfilament_menu.cppfilament_menu.hfilament_runout_screen.cppfilament_runout_screen.hfiles_screen.cppfiles_screen.hflow_percent_screen.cppflow_percent_screen.hinterface_settings_screen.cppinterface_settings_screen.hinterface_sounds_screen.cppinterface_sounds_screen.hjerk_screen.cppjerk_screen.hjunction_deviation_screen.cppjunction_deviation_screen.hkill_screen.cppkill_screen.hlanguage_menu.cpplanguage_menu.hleveling_menu.cppleveling_menu.hlinear_advance_screen.cpplinear_advance_screen.hlock_screen.cpplock_screen.hmain_menu.cppmain_menu.hmax_acceleration_screen.cppmax_acceleration_screen.hmax_velocity_screen.cppmax_velocity_screen.hmedia_player_screen.cppmedia_player_screen.hmove_axis_screen.cppmove_axis_screen.hnozzle_offsets_screen.cppnozzle_offsets_screen.hnudge_nozzle_screen.cppnudge_nozzle_screen.hrestore_failsafe_dialog_box.cpprestore_failsafe_dialog_box.hsave_settings_dialog_box.cppsave_settings_dialog_box.hscreens.hspinner_dialog_box.cppspinner_dialog_box.hstatistics_screen.cppstatistics_screen.hstatus_screen.cppstatus_screen.hstepper_bump_sensitivity_screen.cppstepper_bump_sensitivity_screen.hstepper_current_screen.cppstepper_current_screen.hsteps_screen.cppsteps_screen.hstress_test_screen.cppstress_test_screen.hstring_format.cppstring_format.htemperature_screen.cpptemperature_screen.htouch_calibration_screen.cpptouch_calibration_screen.htouch_registers_screen.cpptouch_registers_screen.htune_menu.cpptune_menu.hwidget_demo_screen.cppwidget_demo_screen.hz_offset_screen.cppz_offset_screen.h
language
pin_mappings.hscreen_data.hscreens.cppscreens.h
theme
malyan
mks_ui
SPIFlashStorage.cppSPIFlashStorage.hSPI_TFT.cppSPI_TFT.hdraw_about.cppdraw_about.hdraw_acceleration_settings.cppdraw_acceleration_settings.hdraw_advance_settings.cppdraw_advance_settings.hdraw_auto_level_offset_settings.cppdraw_auto_level_offset_settings.hdraw_baby_stepping.cppdraw_baby_stepping.hdraw_change_speed.cppdraw_change_speed.hdraw_cloud_bind.cppdraw_cloud_bind.hdraw_dialog.cppdraw_dialog.hdraw_eeprom_settings.cppdraw_eeprom_settings.hdraw_encoder_settings.cppdraw_encoder_settings.hdraw_error_message.cppdraw_error_message.hdraw_extrusion.cppdraw_extrusion.hdraw_fan.cppdraw_fan.hdraw_filament_change.cppdraw_filament_change.hdraw_filament_settings.cppdraw_filament_settings.hdraw_gcode.cppdraw_gcode.hdraw_home.cppdraw_home.hdraw_homing_sensitivity_settings.cppdraw_homing_sensitivity_settings.hdraw_jerk_settings.cppdraw_jerk_settings.hdraw_keyboard.cppdraw_keyboard.hdraw_language.cppdraw_language.hdraw_level_settings.cppdraw_level_settings.hdraw_machine_para.cppdraw_machine_para.hdraw_machine_settings.cppdraw_machine_settings.hdraw_manuaLevel.cppdraw_manuaLevel.hdraw_max_feedrate_settings.cppdraw_max_feedrate_settings.hdraw_media_select.cppdraw_media_select.hdraw_more.cppdraw_more.hdraw_motor_settings.cppdraw_motor_settings.hdraw_move_motor.cppdraw_move_motor.hdraw_number_key.cppdraw_number_key.hdraw_operation.cppdraw_operation.hdraw_pause_message.cppdraw_pause_message.hdraw_pause_position.cppdraw_pause_position.hdraw_preHeat.cppdraw_preHeat.hdraw_print_file.cppdraw_print_file.hdraw_printing.cppdraw_printing.hdraw_ready_print.cppdraw_ready_print.hdraw_set.cppdraw_set.hdraw_step_settings.cppdraw_step_settings.hdraw_tmc_current_settings.cppdraw_tmc_current_settings.hdraw_tmc_step_mode_settings.cppdraw_tmc_step_mode_settings.hdraw_tool.cppdraw_tool.hdraw_touch_calibration.cppdraw_touch_calibration.hdraw_tramming_pos_settings.cppdraw_tramming_pos_settings.hdraw_ui.cppdraw_ui.hdraw_wifi.cppdraw_wifi.hdraw_wifi_list.cppdraw_wifi_list.hdraw_wifi_settings.cppdraw_wifi_settings.hdraw_wifi_tips.cppdraw_wifi_tips.hdraw_z_offset_wizard.cppdraw_z_offset_wizard.hgb2312_puhui16.cppirq_overrid.cppmks_hardware.cppmks_hardware.hpic_manager.cpppic_manager.hprinter_operation.cppprinter_operation.htft_Language_en.htft_Language_fr.htft_Language_it.htft_Language_ru.htft_Language_s_cn.htft_Language_sp.htft_Language_t_cn.htft_lvgl_configuration.cpptft_lvgl_configuration.htft_multi_language.cpptft_multi_language.hwifiSerial.hwifiSerial_STM32.cppwifiSerial_STM32.hwifiSerial_STM32F1.cppwifiSerial_STM32F1.hwifi_module.cppwifi_module.hwifi_upload.cppwifi_upload.h
nextion
ui_api.cppui_api.h
language
lcdprint.cpplcdprint.hmarlinui.cppmarlinui.h
menu
scaled_tft.h
tft
bitmaps
canvas.cppcanvas.h
fontdata
images
tft.cpptft.htft_color.htft_image.cpptft_image.htft_queue.cpptft_queue.htft_string.cpptft_string.htouch.cpptouch.hui_1024x600.cppui_1024x600.hui_320x240.cppui_320x240.hui_480x320.cppui_480x320.hui_common.cppui_common.h
tft_io
thermistornames.h
touch
utf8.cpputf8.h
libs
module
pins
esp32
gd32f1
linux
lpc1768
lpc1769
mega
pins.hpinsDebug.hpinsDebug_list.hpins_postprocess.h
rambo
ramps
sam
samd
sanguino
sensitive_pins.h
stm32f0
stm32f1
stm32f4
stm32f7
stm32g0
stm32h7
teensy2
teensy3
teensy4
sd
tests
buildroot
bin
etc
share
PlatformIO
boards
debugging
ldscripts
scripts
variants
MARLIN_ARCHIM
MARLIN_ARTILLERY_RUBY
MARLIN_BIGTREE_BTT002
MARLIN_BIGTREE_E3_RRF
MARLIN_BIGTREE_GTR_V1
MARLIN_BIGTREE_OCTOPUS_PRO_V1_F429
MARLIN_BIGTREE_OCTOPUS_V1
MARLIN_BIGTREE_SKR_PRO_11
MARLIN_BTT_EBB42_V1_1
MARLIN_BTT_SKR_SE_BX
MARLIN_CREALITY_STM32F401RC
MARLIN_CREALITY_STM32F401RE
MARLIN_F103Rx
MARLIN_F103VE_LONGER
MARLIN_F103Vx
MARLIN_F103Zx
MARLIN_F401RC
MARLIN_F407VE
MARLIN_F407ZE
MARLIN_F446VE
MARLIN_F446Zx_TRONXY
MARLIN_F4x7Vx
MARLIN_FLY_F407ZG
MARLIN_FYSETC_CHEETAH_V20
MARLIN_FYSETC_S6
MARLIN_FYSETC_SPIDER_KING407
MARLIN_G0B1RE
MARLIN_G0B1VE
MARLIN_H723VG
MARLIN_H723ZE
MARLIN_H743VI
MARLIN_LERDGE
MARLIN_MEGA_EXTENDED
MARLIN_MKS_ROBIN2
MARLIN_MKS_SKIPR_V1
MARLIN_TH3D_EZBOARD_V2
marlin_maple_CHITU_F103
marlin_maple_MEEB_3DP
cmake
dwin
bin
icons-3
icons-4
icons-7
000-ICON_LOGO_Creality.jpg001-ICON_Print_0.jpg002-ICON_Print_1.jpg003-ICON_Prepare_0.jpg004-ICON_Prepare_1.jpg005-ICON_Control_0.jpg006-ICON_Control_1.jpg007-ICON_Leveling_0.jpg008-ICON_Leveling_1.jpg009-ICON_HotendTemp.jpg010-ICON_BedTemp.jpg011-ICON_Speed.jpg012-ICON_Zoffset.jpg013-ICON_Back.jpg014-ICON_File.jpg015-ICON_PrintTime.jpg016-ICON_RemainTime.jpg017-ICON_Setup_0.jpg018-ICON_Setup_1.jpg019-ICON_Pause_0.jpg020-ICON_Pause_1.jpg021-ICON_Continue_0.jpg022-ICON_Continue_1.jpg023-ICON_Stop_0.jpg024-ICON_Stop_1.jpg025-ICON_Bar.jpg026-ICON_More.jpg027-ICON_Axis.jpg028-ICON_CloseMotor.jpg029-ICON_Homing.jpg030-ICON_SetHome.jpg031-ICON_PLAPreheat.jpg032-ICON_ABSPreheat.jpg033-ICON_Cool.jpg034-ICON_Language.jpg035-ICON_MoveX.jpg036-ICON_MoveY.jpg037-ICON_MoveZ.jpg038-ICON_Extruder.jpg040-ICON_Temperature.jpg041-ICON_Motion.jpg042-ICON_WriteEEPROM.jpg043-ICON_ReadEEPROM.jpg044-ICON_ResetEEPROM.jpg045-ICON_Info.jpg046-ICON_SetEndTemp.jpg047-ICON_SetBedTemp.jpg048-ICON_FanSpeed.jpg049-ICON_SetPLAPreheat.jpg050-ICON_SetABSPreheat.jpg051-ICON_MaxSpeed.jpg052-ICON_MaxAccelerated.jpg053-ICON_MaxJerk.jpg054-ICON_Step.jpg055-ICON_PrintSize.jpg056-ICON_Version.jpg057-ICON_Contact.jpg058-ICON_StockConfiguraton.jpg059-ICON_MaxSpeedX.jpg060-ICON_MaxSpeedY.jpg061-ICON_MaxSpeedZ.jpg062-ICON_MaxSpeedE.jpg063-ICON_MaxAccX.jpg064-ICON_MaxAccY.jpg065-ICON_MaxAccZ.jpg066-ICON_MaxAccE.jpg067-ICON_MaxSpeedJerkX.jpg068-ICON_MaxSpeedJerkY.jpg069-ICON_MaxSpeedJerkZ.jpg070-ICON_MaxSpeedJerkE.jpg071-ICON_StepX.jpg072-ICON_StepY.jpg073-ICON_StepZ.jpg074-ICON_StepE.jpg075-ICON_Setspeed.jpg076-ICON_SetZOffset.jpg077-ICON_Rectangle.jpg078-ICON_BLTouch.jpg079-ICON_TempTooLow.jpg080-ICON_AutoLeveling.jpg081-ICON_TempTooHigh.jpg082-ICON_NoTips_C.jpg083-ICON_NoTips_E.jpg084-ICON_Continue_C.jpg085-ICON_Continue_E.jpg086-ICON_Cancel_C.jpg087-ICON_Cancel_E.jpg088-ICON_Confirm_C.jpg089-ICON_Confirm_E.jpg090-ICON_Info_0.jpg091-ICON_Info_1.jpg
icons-svg
make_jpgs.sh
extras
fonts
git
pin_interrupt_test
pixmaps
scripts
sublime
vscode
test-gcode
tests
web-ui
config
docker
docs
ini
platformio.iniprocess-palette.json

@ -0,0 +1,245 @@
/*
*******************************************************************************
* Copyright (c) 2017, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/*----------------------------------------------------------------------------
* Pins
*----------------------------------------------------------------------------*/
// Left Side
#define PB12 0
#define PB13 1
#define PB14 2
#define PB15 3
#define PD8 4
#define PD9 5
#define PD10 6
#define PD11 7
#define PD12 8
#define PD13 9
#define PD14 10
#define PD15 11
#define PG2 12
#define PG3 13
#define PG4 14
#define PG5 15
#define PG6 16
#define PG7 17
#define PG8 18
#define PC6 19
#define PC7 20
#define PC8 21
#define PC9 22
#define PA8 23
#define PA9 24
#define PA10 25
#define PA11 26 // USB_DM
#define PA12 27 // USB_DP
#define PA13 28
#define PA14 29
#define PA15 30
#define PC10 31
#define PC11 32
#define PC12 33
#define PD0 34
#define PD1 35
#define PD2 36
#define PD3 37
#define PD4 38
#define PD5 39
#define PD6 40
#define PD7 41
#define PG9 42
#define PG10 43
#define PG11 44
#define PG12 45
#define PG13 46
#define PG14 47
#define PG15 48
#define PB3 49
#define PB4 50
#define PB5 51
#define PB6 52
#define PB7 53
#define PB8 54
#define PB9 55
// Right Side
#define PB10 56
#define PB11 57
#define PE14 58
#define PE15 59
#define PE12 60
#define PE13 61
#define PE10 62
#define PE11 63
#define PE8 64
#define PE9 65
#define PG1 66
#define PE7 67
#define PF15 68
#define PG0 69
#define PF13 70
#define PF14 71
#define PF11 72
#define PF12 73
#define PB2 74
#define PB1 75 // A0
#define PC5 76 // A1
#define PB0 77 // A2
#define PA7 78 // A3
#define PC4 79 // A4
#define PA5 80 // A5
#define PA6 81 // A6
#define PA3 82 // A7
#define PA4 83 // A8
#define PA1 84 // A9
#define PA2 85 // A10
#define PC3 86 // A11
#define PA0 87 // A12/PA_0(WK_UP): BUT K_UP)
#define PC1 88 // A13
#define PC2 89 // A14
#define PC0 90 // A15
#define PF8 91 // A16
#define PF6 92 // A17
#define PF7 93 // A18
#define PF9 94 // LED D1 (active low)
#define PF10 95 // LED D2 (active low)
#define PF4 96
#define PF5 97
#define PF2 98
#define PF3 99
#define PF0 100
#define PF1 101
#define PE6 102
#define PC13 103
#define PE4 104 // BUT K0
#define PE5 105 // BUT K1
#define PE2 106
#define PE3 107
#define PE0 108
#define PE1 109
#define PC14 110
#define PC15 111
// This must be a literal
#define NUM_DIGITAL_PINS 112
// This must be a literal with a value less than or equal to MAX_ANALOG_INPUTS
#define NUM_ANALOG_INPUTS 23
#define NUM_ANALOG_FIRST 75
// Below SPI and I2C definitions already done in the core
// Could be redefined here if differs from the default one
// SPI Definitions
// SPI1 (Winbond on the Lerdge-K)
//#define PIN_SPI_SS PC4
//#define PIN_SPI_SCK PA5
//#define PIN_SPI_MISO PA6
//#define PIN_SPI_MOSI PA7
// SPI2 (Winbond on the Lerdge-S)
//#define PIN_SPI_SS PB12
//#define PIN_SPI_SCK PB13
//#define PIN_SPI_MISO PB14
//#define PIN_SPI_MOSI PB15
// I2C Definitions (Software I2C)
//#define PIN_WIRE_SDA PG13
//#define PIN_WIRE_SCL PG14
// Timer Definitions
// Do not use timer used by PWM pins when possible. See PinMap_PWM in PeripheralPins.c
// FANs may require PWM timers 3 10 11 13
// The LED/RGB connectors timer 4
// Beware: MCU_TIMER_STEP default is 6 and MCU_TIMER_TEMP 14 for the F407
#ifndef TIMER_TONE
#define TIMER_TONE TIM8 // TIM3 or TIM8 for SPEAKER compat on the lerdge K (PC6)
#endif // TIM4 for that on the Lerdge S (PD11)
#ifndef TIMER_SERVO
#define TIMER_SERVO TIM1 // Ideally TIM2 for Hardware PWM (PB11)
#endif // TIM4 on the S (PD12)
#ifndef TIMER_SERIAL
#define TIMER_SERIAL TIM7 // Default used in SoftwareSerial lib
#endif
// UART Definitions
// Define here Serial instance number to map on Serial generic name
#define SERIAL_UART_INSTANCE 1 //ex: 2 for Serial2 (USART2)
// DEBUG_UART could be redefined to print on another instance than 'Serial'
//#define DEBUG_UART ((USART_TypeDef *) U(S)ARTX) // ex: USART3
// DEBUG_UART baudrate, default: 9600 if not defined
//#define DEBUG_UART_BAUDRATE x
// DEBUG_UART Tx pin name, default: the first one found in PinMap_UART_TX for DEBUG_UART
//#define DEBUG_PINNAME_TX PX_n // PinName used for TX
// Default pin used for 'Serial' instance (ex: ST-Link)
// Mandatory for Firmata
#define PIN_SERIAL_RX PA10
#define PIN_SERIAL_TX PA9
/* Extra HAL modules */
//#define HAL_DAC_MODULE_ENABLED
#define HAL_SD_MODULE_ENABLED
#define HAL_SRAM_MODULE_ENABLED
#define HAL_EXTI_MODULE_ENABLED // Needed for Endstop (and other external) Interrupts
#ifdef __cplusplus
} // extern "C"
#endif
/*----------------------------------------------------------------------------
* Arduino objects - C++ only
*----------------------------------------------------------------------------*/
#ifdef __cplusplus
// These serial port names are intended to allow libraries and architecture-neutral
// sketches to automatically default to the correct port name for a particular type
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
//
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
//
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
//
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
//
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
//
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
// pins are NOT connected to anything by default.
#define SERIAL_PORT_MONITOR Serial
#define SERIAL_PORT_HARDWARE Serial1
#endif