-
Notifications
You must be signed in to change notification settings - Fork 3
/
DisplayEncoder.cfg
30 lines (27 loc) · 1.09 KB
/
DisplayEncoder.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# [\*] Enable extra low-level configuration options
# Micro-controller Architecture (STMicroelectronics STM32)
# Processor model (STM32F042)
# Clock Reference (Internal clock)
# Use USB for communication (USB (on PA9/PA10))
# USB ids --->
# [ ] Specify a custom step pulse duration
# () GPIO pins to set at micro-controller startup
[mcu displayEncoder]
serial: /dev/serial/by-id/usb-Klipper_stm32f042x6_280029000443535031303820-if00
restart_method: command
[display]
lcd_type: sh1106
i2c_mcu: displayEncoder
i2c_bus: i2c1a
encoder_pins: ^displayEncoder:PA3, ^displayEncoder:PA4
click_pin: ^!displayEncoder:PA1
kill_pin: ^!displayEncoder:PA5
x_offset: 2
# Use X offset to shift the display towards the right. Value can be 0 to 3
vcomh: 31
# Set the Vcomh value on SSD1306/SH1106 displays. This value is
# associated with a "smearing" effect on some OLED displays. The
# value may range from 0 to 63. Default is 0.
# Adjust this value if you get some vertical stripes on your display. (31 seems to be a good value)
menu_timeout: 60
# Display neopixel is configured in leds.cfg