Basic Information:
Printer Model: DIY CoreXY
MCU / Printerboard: BTT Octopus Pro v1.1 (STM32h723)
Display: BTT mini12864 v2.0
klippy.log
klippy.log (22.4 KB)
Describe your issue:
While trying to install BTT mini1286 display I found about public example don’t work as expected in controlling LEDs in my config.
Here 1 LED for display background color and another two… just LEDs.
SET_LED gcode command do like “random”. While with same input - same result, but this result is not as expected to be. Looks like input values (from 0.0 to 1.0) converted to bit sequence, but this bits goes into wrong place/order.
My config:
[display]
# mini12864 LCD Display
lcd_type: uc1701
cs_pin: EXP1_3
a0_pin: EXP1_4
rst_pin: EXP1_5
encoder_pins: ^EXP2_5, ^EXP2_3
click_pin: ^!EXP1_2
contrast: 53
spi_bus: spi1
#spi_software_miso_pin: EXP2_1
#spi_software_mosi_pin: EXP2_6
#spi_software_sclk_pin: EXP2_2
[neopixel btt_mini12864]
pin: EXP1_6
chain_count: 3
color_order: RGB
initial_RED: 0.3
initial_GREEN: 0.3
initial_BLUE: 0.3
[delayed_gcode setdisplayneopixel]
initial_duration: 1
gcode:
SET_LED LED=btt_mini12864 RED=0.0 GREEN=0.0 BLUE=0.0 INDEX=1 TRANSMIT=0
SET_LED LED=btt_mini12864 RED=0.1 GREEN=0.0 BLUE=0.0 INDEX=2 TRANSMIT=0
SET_LED LED=btt_mini12864 RED=0.0 GREEN=0.0 BLUE=0.0 INDEX=3
I have TMC2240 drivers at spi1 bus, and spi1 bus pins also used for EXP2 connector in BTT Octopus Pro, software spi config can’t be used on same pins.
Display and buttons seems work okay, problem is only in controlling LEDs on it.