Skip to content

Instantly share code, notes, and snippets.

@sp4c38
sp4c38 / level_qidi_3d_printer_without_screen.md
Created July 23, 2023 09:37
Level QIDI 3D printer (imate-s) without the screen/display with OctoPrint
View level_qidi_3d_printer_without_screen.md

May work for other QIDI printers as well.

The general procedure of the leveling process initiated via the screen is to move the print head to four different positions. At the first three positions the appropiate screw should be adjusted in such manner that there is only little friction between the nozzle and the leveling paper.

For the first three positions you can use the "Bed Leveling Wizard" from jneilliii available via the plugin manager in OctoPrint. In the plugin settings you will need to turn on "Use Custom Points". Then add following points:

X Y
10 10
260 10
@sp4c38
sp4c38 / DataBitwiseShift.swift
Last active January 8, 2022 18:14
Bitwise shift bits from multiple bytes inside Data
View DataBitwiseShift.swift
infix operator >>>=: AssignmentPrecedence
infix operator >>>: BitwiseShiftPrecedence
extension Data {
private static let countBit: [Int: UInt8] = [
1: 0b10000000, 2: 0b11000000, 3: 0b11100000, 4: 0b11110000,
5: 0b11111000, 6: 0b11111100, 7: 0b11111110, 8: 0b11111111
]
/// Performs a left shift.