GithubHelp home page GithubHelp logo

freakydude / klipper-serial-btt Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 3.0 84 KB

This is my project to enable serial (UART) connected BigTreeTech-TouchScreens with Klipper by emulating anything it needs with macros.

Home Page: https://blog.freakydu.de/posts/2023-03-23-use_bigtreetech_touchscreenfirmware_with_klipper_on_sidewinder_x2/

License: GNU General Public License v3.0

Shell 88.59% Smarty 11.41%
bigtreetech gcode klipper mainsail marlin touchscreen moonraker artillery btt sidewinder

klipper-serial-btt's People

Contributors

freakydude avatar rediculum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

klipper-serial-btt's Issues

Print fromOnboard SD Crash

if you push the button to print from Onboard SD Card, it will stay in a load screen and you need to reboot the screen
i recommend to remove this button

hardcoded probe on M851 and _PROBE_OFFSET_REPORT

Hello

You have hardcoded "bltouch" as the probe in the M851 and _PROBE_OFFSET_REPORT gcode macro.

[gcode_macro _PROBE_OFFSET_REPORT]
gcode:
  {% set OFFSET_X = printer.configfile.settings.bltouch.x_offset | default(0) - printer.gcode_move.homing_origin.x %}
  {% set OFFSET_Y = printer.configfile.settings.bltouch.y_offset | default(0) - printer.gcode_move.homing_origin.y %}
  {% set OFFSET_Z = printer.configfile.settings.bltouch.z_offset | default(0) - printer.gcode_move.homing_origin.z %}

  _SEND_TO_BTT COMMAND="M851 X{OFFSET_X} Y{OFFSET_Y} Z{OFFSET_Z}"
[gcode_macro M851]
description: XYZ Probe Offset
  Set the XYZ distance from the nozzle to the probe trigger-point.
gcode:
  #{% set X = params.X | default(0)| float %}
  #{% set Y = params.Y | default(0)| float %}
  #{% set Z = params.Z | default(0)| float %}

  {% set OFFSET_X = printer.configfile.settings.bltouch.x_offset | default(0) - printer.gcode_move.homing_origin.x %}
  {% set OFFSET_Y = printer.configfile.settings.bltouch.y_offset | default(0) - printer.gcode_move.homing_origin.y %}
  {% set OFFSET_Z = printer.configfile.settings.bltouch.z_offset | default(0) - printer.gcode_move.homing_origin.z %}

  {% if not (params.X is defined or params.Y is defined or params.Z is defined) %}
    _SEND_TO_BTT COMMAND="M851 X{OFFSET_X} Y{OFFSET_Y} Z{OFFSET_Z}"
  {% endif %}

For people like me who replaced it by an inductive sensor like SN04 and used the [probe] configuration instead of [bltouch], Klipper throws the following error on startup:

Error evaluating 'gcode_macro _PROBE_OFFSET_REPORT:gcode': jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'bltouch'

Install script

Pack all commands into an install script. This makes the installation easier for users with weak linux skills.

Connection USB TTL ?

Hello, sorry for my English. Is it possible to use a USB TTL by connecting the Raspberry Pi or Orange Pi 3 to the TFT? What would I have to modify in the files?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.