Skip to content

Instantly share code, notes, and snippets.

@Burgestrand
Last active January 5, 2022 00:16
Show Gist options
  • Save Burgestrand/ff5af8846d514d6cac1611c51f450dfd to your computer and use it in GitHub Desktop.
Save Burgestrand/ff5af8846d514d6cac1611c51f450dfd to your computer and use it in GitHub Desktop.
#####################################################################
# BTT Octopus Pin Aliases
# See https://github.com/VoronDesign/VoronUsers/tree/master/firmware_configurations/klipper/revnull/btt_octopus_pins
#####################################################################
[board_pins]
aliases:
# Stepper drivers
MOT0_EN=PF14, MOT0_STEP=PF13, MOT0_DIR=PF12, MOT0_CS=PC4, # MOTOR0
MOT1_EN=PF15, MOT1_STEP=PG0, MOT1_DIR=PG1, MOT1_CS=PD11, # MOTOR1
MOT2_EN=PG5, MOT2_STEP=PF11, MOT2_DIR=PG3, MOT2_CS=PC6, # MOTOR2
MOT3_EN=PA0, MOT3_STEP=PG4, MOT3_DIR=PC1, MOT3_CS=PC7, # MOTOR3
MOT4_EN=PG2, MOT4_STEP=PF9, MOT4_DIR=PF10, MOT4_CS=PF2, # MOTOR4
MOT5_EN=PF1, MOT5_STEP=PC13, MOT5_DIR=PF0, MOT5_CS=PE4, # MOTOR5
MOT6_EN=PD4, MOT6_STEP=PE2, MOT6_DIR=PE3, MOT6_CS=PE1, # MOTOR6
MOT7_EN=PE0, MOT7_STEP=PE6, MOT7_DIR=PA14, MOT7_CS=PD3, # MOTOR7
# Heaters
BED_OUT=PA1,
HE0=PA2, HE1=PA3, HE2=PB10, HE3=PB11,
# Thermisors
TB=PF3, T0=PF4, T1=PF5, T2=PF6, T3=PF7,
PT100=PF8,
# Fans
FAN0=PA8, FAN1=PE5, FAN2=PD12, FAN3=PD13, FAN4=PD14, FAN5=PD15,
# End stops
ESTOP0=PG6, ESTOP1=PG9, ESTOP2=PG10, ESTOP3=PG11,
ESTOP4=PG12, ESTOP5=PG13, ESTOP6=PG14, ESTOP7=PG15,
# EXP1
EXP1_1=PE8, EXP1_2=PE7,
EXP1_3=PE9, EXP1_4=PE10,
EXP1_5=PE12, EXP1_6=PE13, # Slot in the socket on this side
EXP1_7=PE14, EXP1_8=PE15,
EXP1_9=<GND>, EXP1_10=<5V>,
# EXP2
EXP2_1=PA6, EXP2_2=PA5,
EXP2_3=PB1, EXP2_4=PA4,
EXP2_5=PB2, EXP2_6=PA7, # Slot in the socket on this side
EXP2_7=PC15, EXP2_8=<RST>,
EXP2_9=<GND>, EXP2_10=PC5,
# TFT
TFT_5=<RST>,
TFT_4=PA10,
TFT_3=PA9,
TFT_2=<GND>,
TFT_1=<5V>,
# Inductive Probe
PRB_1=<DCV>, PRB_2=<GND>, PRB_3=PB7,
# BL Touch
BLT_5=<GND>,
BLT_4=<5V>,
BLT_CTL=PB6, # BL Touch servo pin
BLT_2=<GND>,
BLT_SNSR=PB7, # BL Touch end stop pin
# LED Control
NEOPXL_3=<GND>, NEOPXL_2=PB0, NEOPXL_1=<5V>,
# Raspberry Pi
RPI_1=<5V>, RPI_2=<5V>,
RPI_3=<GND>, RPI_4=<GND>,
RPI_5=<GND>, RPI_6=<GND>,
RPI_7=<GND>, RPI_8=<GND>,
RPI_RX=PD6, RPI_TX=PD5,
# SPI3
SPI3_2=<3V3>, SPI3_MOSI=PB5, SPI3_CS=PA15, SPI3_8=<GND>, SPI3_10=<5V>,
SPI3_1=<GND>, SPI3_MISO=PB4, SPI3_SCK=PB3, SPI3_7=<GND>, SPI3_9=<5V>,
# Other headers
POWER_DET=PC0,
PS_ON=PE11
[display]
lcd_type: uc1701
cs_pin: EXP1_3 # LCD_CS
a0_pin: EXP1_4 # LCD_RS
rst_pin: EXP1_5 # LCD_RST
contrast: 63
encoder_pins: ^EXP2_5, ^EXP2_3 # ENC_B, ENC_A
click_pin: ^!EXP1_2 # ENC_BTN
spi_software_miso_pin: EXP2_1 # MISO
spi_software_mosi_pin: EXP2_6 # MOSI
spi_software_sclk_pin: EXP2_2 # CLK
# [output_pin beeper]
# pin: EXP1_1
# pwm: True
# cycle_time: 0.005 # 5kHz
[neopixel btt_mini12864]
pin: EXP1_6
chain_count: 3
color_order: RGB
initial_RED: 0.4
initial_GREEN: 0.4
initial_BLUE: 0.4
# [delayed_gcode setdisplayneopixel]
# initial_duration: 3
# gcode:
# SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0
# SET_LED LED=btt_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=2 TRANSMIT=0
# SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3
[menu __main __octoprint]
type: disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment