-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDisplayEncoder.cfg
35 lines (29 loc) · 1.22 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
31
32
33
[mcu displayEncoder]
serial: /dev/serial/by-id/usb-Klipper_stm32f042x6_2F000B000943535035373520-if00
restart_method: command
[display]
lcd_type: sh1106
i2c_mcu: displayEncoder
i2c_bus: i2c1a
# Set the direction of the encoder wheel
# Standard: Right (clockwise) scrolls down or increases values. Left (counter-clockwise scrolls up or decreases values.
encoder_pins: ^displayEncoder:PA3, ^displayEncoder:PA4
# Reversed: Right (clockwise) scrolls up or decreases values. Left (counter-clockwise scrolls down or increases values.
#encoder_pins: ^displayEncoder:PA4, ^displayEncoder:PA3
click_pin: ^!displayEncoder:PA1
kill_pin: ^!displayEncoder:PA5
# Use X offset to shift the display towards the right. Value can be 0 to 3
# 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)
vcomh: 31
# Use X offset to shift the display towards the right. Value can be 0 to 3
x_offset: 2
[neopixel displayStatus]
pin: displayEncoder:PA0
chain_count: 1
color_order: GRB
initial_RED: 0.2
initial_GREEN: 0.05
initial_BLUE: 0