Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Desuuuu committed Aug 16, 2020
0 parents commit 4f9d155
Show file tree
Hide file tree
Showing 94 changed files with 844 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
daysUntilStale: 60
daysUntilClose: 7
exemptLabels:
- pinned
- security
staleLabel: wontfix
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
closeComment: false
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project/ICON
project/image

project/*.xls

project/DWIN_SET/*.bin
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# DGUS-reloaded-Klipper

Firmware for 3D printers' DGUS touchscreens.

The printer firmware to run alongside this can be found in [this repository](https://github.com/Desuuuu/klipper).

## Disclaimer
**This software is provided without any warranty. You are solely responsible for your use of it.**

## Features

This firmware was inspired by Creality printers' touchscreen firmware. Some features include:

* Status message available on most screens
* Z offset, manual and automatic leveling
* PID autotuning
* Volume adjustment
* Brightness adjustment
* BLTouch reset shortcut (if a BLTouch is installed)
* Playing sounds using M300 (the frequency parameter is the index of the audio file)

Focus was also put on making this firmware as easy and safe to use as possible from a user perspective.

## Compatibility
This firmware **should** be compatible with printers equipped with the following hardware:

* 480x272 DWIN touchscreen
* Single extruder
* Heated bed
* Single controllable fan
* Bed leveling sensor (including a BLTouch)

It **could** also work on machines equipped with more hardware (dual extruder, etc.) but will lack on-screen controls for such hardware.

Testing has been done on the following machines:

* Creality CR-10S Pro

## Prerequisites
You have to use this [modified version of Klipper](https://github.com/Desuuuu/klipper). Make sure to enable the serial connection to the screen while configuring the MCU firmware.

The only modification required to your Klipper configuration file is to add this section:
```
[t5uid1]
firmware: dgus_reloaded
```

For a list of available options, see the [sample-t5uid1.cfg](https://github.com/Desuuuu/klipper/blob/master/config/sample-t5uid1.cfg) file.

It is also a good idea to add this command to your start G-code:
```
DGUS_PRINT_START
```
And this command to your end G-code:
```
DGUS_PRINT_END
```

## Installation
The installation process is detailed on [this wiki page](https://github.com/Desuuuu/DGUS-reloaded-Klipper/wiki/Flashing-the-firmware).

## Modification / Compilation
You can make modifications to the firmware by opening the `DWprj.hmi` file in **DGUS Tools**.

After finishing your modifications, you will need to press the *Generate* button to create the 3 required binary files.

You can then run the rename script and flash your touchscreen using the resulting `DWIN_SET` folder.

## Credits
| Material | Author | Modified | License |
|:------------------------------------------------------------------------------:|:---------------------------------------------------------:|:--------:|:---------------------------------------------------------------------:|
| [Klipper logo](https://github.com/KevinOConnor/klipper) | [KevinOConnor](https://github.com/KevinOConnor) | Yes | [GPLv3](http://www.gnu.org/licenses/gpl-3.0.html) |
| [Feather icons](https://feathericons.com/) | [Cole Bemis](https://twitter.com/colebemis) | Yes | [MIT](https://github.com/feathericons/feather/blob/master/LICENSE) |
| [3D Printing Line icons](https://www.iconfinder.com/iconsets/3d-printing-line) | [Sam Baines](https://www.iconfinder.com/conceptbaines) | Yes | [CC-BY 3.0](https://creativecommons.org/licenses/by/3.0/legalcode) |
| [Fan icon](https://thenounproject.com/term/fan/1153915/) | [Atif Arshad](https://thenounproject.com/atifarshad/) | Yes | [CC-BY 3.0](https://creativecommons.org/licenses/by/3.0/us/legalcode) |
| [Snow icon](https://thenounproject.com/term/snow/1959859/) | [Shashank Singh](https://thenounproject.com/rshashank19/) | Yes | [CC-BY 3.0](https://creativecommons.org/licenses/by/3.0/us/legalcode) |
| [Electric Motor icon](https://thenounproject.com/term/electric-motor/2734486/) | [Verry](https://thenounproject.com/verry.dsign.creative) | Yes | [CC-BY 3.0](https://creativecommons.org/licenses/by/3.0/us/legalcode) |
| [Probe icon](https://thenounproject.com/term/probe/1841345/) | [Mohamed Mbarki](https://thenounproject.com/mb.icons) | Yes | [CC-BY 3.0](https://creativecommons.org/licenses/by/3.0/us/legalcode) |
| [Wheel icon](https://thenounproject.com/term/wheel/92430/) | [Deivid Sáenz](https://thenounproject.com/deivid.saenz) | Yes | [CC-BY 3.0](https://creativecommons.org/licenses/by/3.0/us/legalcode) |
| [Ruler icon](https://thenounproject.com/term/ruler/1738925/) | [Three Six Five](https://thenounproject.com/365) | - | [CC-BY 3.0](https://creativecommons.org/licenses/by/3.0/us/legalcode) |

## License
[GPLv3](http://www.gnu.org/licenses/gpl-3.0.html)
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0
5 changes: 5 additions & 0 deletions extras/flash_reset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
By default, the flashing process only writes what's currently being flashed to its destination, leaving other areas of the memory untouched.

The `T5UID1.CFG` file provided here will erase the touchscreen onboard memory before the flashing process starts.

It is recommended to use this file when coming from a different touchscreen firmware.
Binary file added extras/flash_reset/T5UID1.CFG
Binary file not shown.
Binary file added project/DWIN_SET/000_boot.bmp
Binary file not shown.
Binary file added project/DWIN_SET/001_home.bmp
Binary file not shown.
Binary file added project/DWIN_SET/002_print_status.bmp
Binary file not shown.
Binary file added project/DWIN_SET/003_print_adjust.bmp
Binary file not shown.
Binary file added project/DWIN_SET/004_print_finished.bmp
Binary file not shown.
Binary file added project/DWIN_SET/005_temp_menu.bmp
Binary file not shown.
Binary file added project/DWIN_SET/006_temp_manual.bmp
Binary file not shown.
Binary file added project/DWIN_SET/007_fan.bmp
Binary file not shown.
Binary file added project/DWIN_SET/008_move.bmp
Binary file not shown.
Binary file added project/DWIN_SET/009_settings_menu.bmp
Binary file not shown.
Binary file added project/DWIN_SET/010_leveling_menu.bmp
Binary file not shown.
Binary file added project/DWIN_SET/011_leveling_offset.bmp
Binary file not shown.
Binary file added project/DWIN_SET/012_leveling_manual.bmp
Binary file not shown.
Binary file added project/DWIN_SET/013_leveling_automatic.bmp
Binary file not shown.
Binary file added project/DWIN_SET/014_leveling_probing.bmp
Binary file not shown.
Binary file added project/DWIN_SET/015_filament.bmp
Binary file not shown.
Binary file added project/DWIN_SET/016_volume.bmp
Binary file not shown.
Binary file added project/DWIN_SET/017_brightness.bmp
Binary file not shown.
Binary file added project/DWIN_SET/018_settings_menu2.bmp
Binary file not shown.
Binary file added project/DWIN_SET/019_pid.bmp
Binary file not shown.
Binary file added project/DWIN_SET/01_boot.wav
Binary file not shown.
Binary file added project/DWIN_SET/020_information.bmp
Binary file not shown.
Binary file added project/DWIN_SET/02_click.wav
Binary file not shown.
Binary file added project/DWIN_SET/03_notification.wav
Binary file not shown.
Binary file added project/DWIN_SET/0_DWIN_ASC.HZK
Binary file not shown.
Binary file added project/DWIN_SET/202_popup_numpad.bmp
Binary file not shown.
Binary file added project/DWIN_SET/203_popup_numpad_sel.bmp
Binary file not shown.
Binary file added project/DWIN_SET/204_popup_abort.bmp
Binary file not shown.
Binary file added project/DWIN_SET/205_popup_abort_sel.bmp
Binary file not shown.
Binary file added project/DWIN_SET/206_popup_pause.bmp
Binary file not shown.
Binary file added project/DWIN_SET/207_popup_pause_sel.bmp
Binary file not shown.
Binary file added project/DWIN_SET/208_popup_resume.bmp
Binary file not shown.
Binary file added project/DWIN_SET/209_popup_resume_sel.bmp
Binary file not shown.
Binary file added project/DWIN_SET/210_popup_presets.bmp
Binary file not shown.
Binary file added project/DWIN_SET/211_popup_presets_sel.bmp
Binary file not shown.
Binary file added project/DWIN_SET/212_popup_steppers.bmp
Binary file not shown.
Binary file added project/DWIN_SET/213_popup_steppers_sel.bmp
Binary file not shown.
Binary file added project/DWIN_SET/240_debug1.bmp
Binary file not shown.
Binary file added project/DWIN_SET/241_debug2.bmp
Binary file not shown.
Binary file added project/DWIN_SET/249_wait.bmp
Binary file not shown.
Binary file added project/DWIN_SET/24_icons.ico
Binary file not shown.
Binary file added project/DWIN_SET/250_kill.bmp
Binary file not shown.
Binary file added project/DWIN_SET/27_buttons.ico
Binary file not shown.
Binary file added project/DWIN_SET/30_progress_left.ico
Binary file not shown.
Binary file added project/DWIN_SET/37_progress_right.ico
Binary file not shown.
Binary file added project/DWIN_SET/T5UID1.CFG
Binary file not shown.
44 changes: 44 additions & 0 deletions project/DWprj.hmi
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[INIT]
PICFIX=1
VARCount=64
Version=1
SCREENDSIZE=480X272
SPADDRESS=5000
[IMG]
000=000_boot.bmp
001=001_home.bmp
002=002_print_status.bmp
003=003_print_adjust.bmp
004=004_print_finished.bmp
005=005_temp_menu.bmp
006=006_temp_manual.bmp
007=007_fan.bmp
008=008_move.bmp
009=009_settings_menu.bmp
010=010_leveling_menu.bmp
011=011_leveling_offset.bmp
012=012_leveling_manual.bmp
013=013_leveling_automatic.bmp
014=014_leveling_probing.bmp
015=015_filament.bmp
016=016_volume.bmp
017=017_brightness.bmp
018=018_settings_menu2.bmp
019=019_pid.bmp
020=020_information.bmp
202=202_popup_numpad.bmp
203=203_popup_numpad_sel.bmp
204=204_popup_abort.bmp
205=205_popup_abort_sel.bmp
206=206_popup_pause.bmp
207=207_popup_pause_sel.bmp
208=208_popup_resume.bmp
209=209_popup_resume_sel.bmp
210=210_popup_presets.bmp
211=211_popup_presets_sel.bmp
212=212_popup_steppers.bmp
213=213_popup_steppers_sel.bmp
240=240_debug1.bmp
241=241_debug2.bmp
249=249_wait.bmp
250=250_kill.bmp
Binary file added project/DWprj.tft
Binary file not shown.
Binary file added project/TFT/000_boot.bmp.tft
Binary file not shown.
Binary file added project/TFT/001_home.bmp.tft
Binary file not shown.
Binary file added project/TFT/002_print_status.bmp.tft
Binary file not shown.
Binary file added project/TFT/003_print_adjust.bmp.tft
Binary file not shown.
Binary file added project/TFT/004_print_finished.bmp.tft
Binary file not shown.
Binary file added project/TFT/005_temp_menu.bmp.tft
Binary file not shown.
Binary file added project/TFT/006_temp_manual.bmp.tft
Binary file not shown.
Binary file added project/TFT/007_fan.bmp.tft
Binary file not shown.
Binary file added project/TFT/008_move.bmp.tft
Binary file not shown.
Binary file added project/TFT/009_settings_menu.bmp.tft
Binary file not shown.
Binary file added project/TFT/010_leveling_menu.bmp.tft
Binary file not shown.
Binary file added project/TFT/011_leveling_offset.bmp.tft
Binary file not shown.
Binary file added project/TFT/012_leveling_manual.bmp.tft
Binary file not shown.
Binary file added project/TFT/013_leveling_automatic.bmp.tft
Binary file not shown.
Binary file added project/TFT/014_leveling_probing.bmp.tft
Binary file not shown.
Binary file added project/TFT/015_filament.bmp.tft
Binary file not shown.
Binary file added project/TFT/016_volume.bmp.tft
Binary file not shown.
Binary file added project/TFT/017_brightness.bmp.tft
Binary file not shown.
Binary file added project/TFT/018_settings_menu2.bmp.tft
Binary file not shown.
Binary file added project/TFT/019_pid.bmp.tft
Binary file not shown.
Binary file added project/TFT/020_information.bmp.tft
Binary file not shown.
Binary file added project/TFT/202_popup_numpad.bmp.tft
Binary file not shown.
Binary file added project/TFT/203_popup_numpad_sel.bmp.tft
Binary file not shown.
Binary file added project/TFT/204_popup_abort.bmp.tft
Binary file not shown.
Binary file added project/TFT/205_popup_abort_sel.bmp.tft
Binary file not shown.
Binary file added project/TFT/206_popup_pause.bmp.tft
Binary file not shown.
Binary file added project/TFT/207_popup_pause_sel.bmp.tft
Binary file not shown.
Binary file added project/TFT/208_popup_resume.bmp.tft
Binary file not shown.
Binary file added project/TFT/209_popup_resume_sel.bmp.tft
Binary file not shown.
Binary file added project/TFT/210_popup_presets.bmp.tft
Binary file not shown.
Binary file added project/TFT/211_popup_presets_sel.bmp.tft
Binary file not shown.
Binary file added project/TFT/212_popup_steppers.bmp.tft
Binary file not shown.
Binary file added project/TFT/213_popup_steppers_sel.bmp.tft
Binary file not shown.
Binary file added project/TFT/240_debug1.bmp.tft
Binary file not shown.
Binary file added project/TFT/241_debug2.bmp.tft
Binary file not shown.
Binary file added project/TFT/249_wait.bmp.tft
Binary file not shown.
Binary file added project/TFT/250_kill.bmp.tft
Binary file not shown.
13 changes: 13 additions & 0 deletions project/rename.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@echo OFF

for %%f in (DWIN_SET\13*.bin) do (
if not "%%f" == "DWIN_SET\13_touch.bin" move /y "%%f" "DWIN_SET\13_touch.bin"
)

for %%f in (DWIN_SET\14*.bin) do (
if not "%%f" == "DWIN_SET\14_variable.bin" move /y "%%f" "DWIN_SET\14_variable.bin"
)

for %%f in (DWIN_SET\22*.bin) do (
if not "%%f" == "DWIN_SET\22_config.bin" move /y "%%f" "DWIN_SET\22_config.bin"
)
7 changes: 7 additions & 0 deletions project/rename.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

find DWIN_SET -type f -name "13*.bin" ! -name "13_touch.bin" -exec mv {} DWIN_SET/13_touch.bin \;
find DWIN_SET -type f -name "14*.bin" ! -name "14_variable.bin" -exec mv {} DWIN_SET/14_variable.bin \;
find DWIN_SET -type f -name "22*.bin" ! -name "22_config.bin" -exec mv {} DWIN_SET/22_config.bin \;

exit 0

0 comments on commit 4f9d155

Please sign in to comment.