(kicad_symbol_lib (version 20211014) (generator kicad_symbol_editor)
  (symbol "STM8L151F2Px" (in_bom yes) (on_board yes)
    (property "Reference" "U" (id 0) (at -10.16 38.735 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Value" "STM8L151F2Px" (id 1) (at -10.16 36.83 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Footprint" "Seppl_Package_DFN_QFN:ST_UFQFPN-20_3x3mm_P0.5mm" (id 2) (at 3.81 -7.62 0)
      (effects (font (size 1.27 1.27)) (justify left) hide)
    )
    (property "Datasheet" "https://www.st.com/resource/en/datasheet/stm8l151f2.pdf" (id 3) (at 0 50.8 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "ki_keywords" "STM8 ultra-low-power" (id 4) (at 0 0 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "ki_description" "8-bit ultra-low-power MCU, 4 KB Flash, 256 bytes data EEPROM, LQFP-48" (id 5) (at 0 0 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "ki_fp_filters" "LQFP*7x7mm*P0.5mm*" (id 6) (at 0 0 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (symbol "STM8L151F2Px_0_0"
      (pin bidirectional line (at 17.78 20.32 180) (length 2.54)
        (name "PC5" (effects (font (size 1.27 1.27))))
        (number "1" (effects (font (size 1.27 1.27))))
        (alternate "OSC32_IN" input line)
        (alternate "TIM2_CH1" bidirectional line)
        (alternate "[SPI1_NSS]" bidirectional line)
        (alternate "[USART_TX]" output line)
      )
      (pin bidirectional line (at -17.78 17.78 0) (length 2.54)
        (name "PB0" (effects (font (size 1.27 1.27))))
        (number "10" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN18" input line)
        (alternate "COMP1_INP" input line)
        (alternate "TIM2_CH1" bidirectional line)
      )
      (pin bidirectional line (at -17.78 15.24 0) (length 2.54)
        (name "PB1" (effects (font (size 1.27 1.27))))
        (number "11" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN17" input line)
        (alternate "COMP1_INP" input line)
        (alternate "TIM3_CH1" bidirectional line)
      )
      (pin bidirectional line (at -17.78 12.7 0) (length 2.54)
        (name "PB2" (effects (font (size 1.27 1.27))))
        (number "12" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN16" input line)
        (alternate "COMP1_INP" input line)
        (alternate "TIM2_CH2" bidirectional line)
      )
      (pin bidirectional line (at -17.78 10.16 0) (length 2.54)
        (name "PB3" (effects (font (size 1.27 1.27))))
        (number "13" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN15" input line)
        (alternate "COMP1_INP" input line)
        (alternate "RTC_ALARM" output line)
        (alternate "TIM2_ETR" input line)
      )
      (pin bidirectional line (at -17.78 7.62 0) (length 2.54)
        (name "PB4" (effects (font (size 1.27 1.27))))
        (number "14" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN14" input line)
        (alternate "COMP1_INP" input line)
        (alternate "SPI1_NSS" bidirectional line)
      )
      (pin bidirectional line (at -17.78 5.08 0) (length 2.54)
        (name "PB5" (effects (font (size 1.27 1.27))))
        (number "15" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN13" input line)
        (alternate "COMP1_INP" input line)
        (alternate "SPI_SCK" bidirectional line)
      )
      (pin bidirectional line (at -17.78 2.54 0) (length 2.54)
        (name "PB6" (effects (font (size 1.27 1.27))))
        (number "16" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN12" input line)
        (alternate "COMP1_INP" input line)
        (alternate "SPI1_MOSI" bidirectional line)
      )
      (pin bidirectional line (at -17.78 0 0) (length 2.54)
        (name "PB7" (effects (font (size 1.27 1.27))))
        (number "17" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN11" input line)
        (alternate "COMP1_INP" input line)
        (alternate "SPI1_MISO" bidirectional line)
      )
      (pin bidirectional line (at 17.78 27.94 180) (length 2.54)
        (name "PC0" (effects (font (size 1.27 1.27))))
        (number "18" (effects (font (size 1.27 1.27))))
        (alternate "I2C_SDA" bidirectional line)
      )
      (pin bidirectional line (at 17.78 25.4 180) (length 2.54)
        (name "PC1" (effects (font (size 1.27 1.27))))
        (number "19" (effects (font (size 1.27 1.27))))
        (alternate "I2C_SCL" bidirectional line)
      )
      (pin bidirectional line (at 17.78 17.78 180) (length 2.54)
        (name "PC6" (effects (font (size 1.27 1.27))))
        (number "2" (effects (font (size 1.27 1.27))))
        (alternate "OSC32_OUT" output line)
        (alternate "TIM2_CH1" bidirectional line)
        (alternate "[SPI_SCK]" bidirectional line)
        (alternate "[USART_RX]" input line)
      )
      (pin bidirectional line (at 17.78 22.86 180) (length 2.54)
        (name "PC4" (effects (font (size 1.27 1.27))))
        (number "20" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN4" input line)
        (alternate "CCO" output line)
        (alternate "COMP1_INP" input line)
        (alternate "COMP2_INM" input line)
        (alternate "I2C1_SMB" bidirectional line)
        (alternate "USART_CK" output line)
      )
      (pin bidirectional line (at -17.78 30.48 0) (length 2.54)
        (name "PA0" (effects (font (size 1.27 1.27))))
        (number "3" (effects (font (size 1.27 1.27))))
        (alternate "BEEP" output line)
        (alternate "IR_TIM" output line)
        (alternate "OSC_IN" input line)
        (alternate "SWIM" bidirectional line)
        (alternate "[USART_CK]" bidirectional line)
      )
      (pin bidirectional inverted (at -17.78 27.94 0) (length 2.54)
        (name "~{RESET}" (effects (font (size 1.27 1.27))))
        (number "4" (effects (font (size 1.27 1.27))))
        (alternate "PA1" bidirectional line)
      )
      (pin bidirectional line (at -17.78 25.4 0) (length 2.54)
        (name "PA2" (effects (font (size 1.27 1.27))))
        (number "5" (effects (font (size 1.27 1.27))))
        (alternate "OSC_IN" input line)
        (alternate "[SPI_MISO]" bidirectional line)
        (alternate "[USART_TX]" output line)
      )
      (pin bidirectional line (at -17.78 22.86 0) (length 2.54)
        (name "PA3" (effects (font (size 1.27 1.27))))
        (number "6" (effects (font (size 1.27 1.27))))
        (alternate "OSC_OUT" output line)
        (alternate "[SPI_MOSI]" bidirectional line)
        (alternate "[USART_RX]" input line)
      )
      (pin power_in line (at 0 -5.08 90) (length 2.54)
        (name "V_{SS}/V_{SSA}/V_{REF-}" (effects (font (size 1.27 1.27))))
        (number "7" (effects (font (size 1.27 1.27))))
      )
      (pin power_in line (at 0 38.1 270) (length 2.54)
        (name "V_{DD}/V_{DDA}/V_{REF-}" (effects (font (size 1.27 1.27))))
        (number "8" (effects (font (size 1.27 1.27))))
      )
      (pin bidirectional line (at 17.78 12.7 180) (length 2.54)
        (name "PD0" (effects (font (size 1.27 1.27))))
        (number "9" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN22" input line)
        (alternate "COMP1_INP" input line)
        (alternate "COMP2_INP" input line)
        (alternate "TIM3_CH2" bidirectional line)
        (alternate "[ADC1_TRIG]" input line)
      )
    )
    (symbol "STM8L151F2Px_0_1"
      (rectangle (start -15.24 35.56) (end 15.24 -2.54)
        (stroke (width 0) (type default) (color 0 0 0 0))
        (fill (type background))
      )
      (rectangle (start -10.16 -53.34) (end -10.16 -53.34)
        (stroke (width 0.1524) (type default) (color 0 0 0 0))
        (fill (type none))
      )
    )
  )
  (symbol "STM8L151F2Ux" (in_bom yes) (on_board yes)
    (property "Reference" "U" (id 0) (at -10.16 38.735 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Value" "STM8L151F2Ux" (id 1) (at -10.16 36.83 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Footprint" "Seppl_Package_DFN_QFN:ST_UFQFPN-20_3x3mm_P0.5mm" (id 2) (at 3.81 -7.62 0)
      (effects (font (size 1.27 1.27)) (justify left) hide)
    )
    (property "Datasheet" "https://www.st.com/resource/en/datasheet/stm8l151f2.pdf" (id 3) (at 0 50.8 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "ki_keywords" "STM8 ultra-low-power" (id 4) (at 0 0 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "ki_description" "8-bit ultra-low-power MCU, 4 KB Flash, 256 bytes data EEPROM, LQFP-48" (id 5) (at 0 0 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "ki_fp_filters" "LQFP*7x7mm*P0.5mm*" (id 6) (at 0 0 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (symbol "STM8L151F2Ux_0_0"
      (pin bidirectional inverted (at -17.78 27.94 0) (length 2.54)
        (name "~{RESET}" (effects (font (size 1.27 1.27))))
        (number "1" (effects (font (size 1.27 1.27))))
        (alternate "PA1" bidirectional line)
      )
      (pin bidirectional line (at -17.78 10.16 0) (length 2.54)
        (name "PB3" (effects (font (size 1.27 1.27))))
        (number "10" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN15" input line)
        (alternate "COMP1_INP" input line)
        (alternate "RTC_ALARM" output line)
        (alternate "TIM2_ETR" input line)
      )
      (pin bidirectional line (at -17.78 7.62 0) (length 2.54)
        (name "PB4" (effects (font (size 1.27 1.27))))
        (number "11" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN14" input line)
        (alternate "COMP1_INP" input line)
        (alternate "SPI1_NSS" bidirectional line)
      )
      (pin bidirectional line (at -17.78 5.08 0) (length 2.54)
        (name "PB5" (effects (font (size 1.27 1.27))))
        (number "12" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN13" input line)
        (alternate "COMP1_INP" input line)
        (alternate "SPI_SCK" bidirectional line)
      )
      (pin bidirectional line (at -17.78 2.54 0) (length 2.54)
        (name "PB6" (effects (font (size 1.27 1.27))))
        (number "13" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN12" input line)
        (alternate "COMP1_INP" input line)
        (alternate "SPI1_MOSI" bidirectional line)
      )
      (pin bidirectional line (at -17.78 0 0) (length 2.54)
        (name "PB7" (effects (font (size 1.27 1.27))))
        (number "14" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN11" input line)
        (alternate "COMP1_INP" input line)
        (alternate "SPI1_MISO" bidirectional line)
      )
      (pin bidirectional line (at 17.78 27.94 180) (length 2.54)
        (name "PC0" (effects (font (size 1.27 1.27))))
        (number "15" (effects (font (size 1.27 1.27))))
        (alternate "I2C_SDA" bidirectional line)
      )
      (pin bidirectional line (at 17.78 25.4 180) (length 2.54)
        (name "PC1" (effects (font (size 1.27 1.27))))
        (number "16" (effects (font (size 1.27 1.27))))
        (alternate "I2C_SCL" bidirectional line)
      )
      (pin bidirectional line (at 17.78 22.86 180) (length 2.54)
        (name "PC4" (effects (font (size 1.27 1.27))))
        (number "17" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN4" input line)
        (alternate "CCO" output line)
        (alternate "COMP1_INP" input line)
        (alternate "COMP2_INM" input line)
        (alternate "I2C1_SMB" bidirectional line)
        (alternate "USART_CK" output line)
      )
      (pin bidirectional line (at 17.78 20.32 180) (length 2.54)
        (name "PC5" (effects (font (size 1.27 1.27))))
        (number "18" (effects (font (size 1.27 1.27))))
        (alternate "OSC32_IN" input line)
        (alternate "TIM2_CH1" bidirectional line)
        (alternate "[SPI1_NSS]" bidirectional line)
        (alternate "[USART_TX]" output line)
      )
      (pin bidirectional line (at 17.78 17.78 180) (length 2.54)
        (name "PC6" (effects (font (size 1.27 1.27))))
        (number "19" (effects (font (size 1.27 1.27))))
        (alternate "OSC32_OUT" output line)
        (alternate "TIM2_CH1" bidirectional line)
        (alternate "[SPI_SCK]" bidirectional line)
        (alternate "[USART_RX]" input line)
      )
      (pin bidirectional line (at -17.78 25.4 0) (length 2.54)
        (name "PA2" (effects (font (size 1.27 1.27))))
        (number "2" (effects (font (size 1.27 1.27))))
        (alternate "OSC_IN" input line)
        (alternate "[SPI_MISO]" bidirectional line)
        (alternate "[USART_TX]" output line)
      )
      (pin bidirectional line (at -17.78 30.48 0) (length 2.54)
        (name "PA0" (effects (font (size 1.27 1.27))))
        (number "20" (effects (font (size 1.27 1.27))))
        (alternate "BEEP" output line)
        (alternate "IR_TIM" output line)
        (alternate "OSC_IN" input line)
        (alternate "SWIM" bidirectional line)
        (alternate "[USART_CK]" bidirectional line)
      )
      (pin bidirectional line (at -17.78 22.86 0) (length 2.54)
        (name "PA3" (effects (font (size 1.27 1.27))))
        (number "3" (effects (font (size 1.27 1.27))))
        (alternate "OSC_OUT" output line)
        (alternate "[SPI_MOSI]" bidirectional line)
        (alternate "[USART_RX]" input line)
      )
      (pin power_in line (at 0 -5.08 90) (length 2.54)
        (name "V_{SS}/V_{SSA}/V_{REF-}" (effects (font (size 1.27 1.27))))
        (number "4" (effects (font (size 1.27 1.27))))
      )
      (pin power_in line (at 0 38.1 270) (length 2.54)
        (name "V_{DD}/V_{DDA}/V_{REF-}" (effects (font (size 1.27 1.27))))
        (number "5" (effects (font (size 1.27 1.27))))
      )
      (pin bidirectional line (at 17.78 12.7 180) (length 2.54)
        (name "PD0" (effects (font (size 1.27 1.27))))
        (number "6" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN22" input line)
        (alternate "COMP1_INP" input line)
        (alternate "COMP2_INP" input line)
        (alternate "TIM3_CH2" bidirectional line)
        (alternate "[ADC1_TRIG]" input line)
      )
      (pin bidirectional line (at -17.78 17.78 0) (length 2.54)
        (name "PB0" (effects (font (size 1.27 1.27))))
        (number "7" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN18" input line)
        (alternate "COMP1_INP" input line)
        (alternate "TIM2_CH1" bidirectional line)
      )
      (pin bidirectional line (at -17.78 15.24 0) (length 2.54)
        (name "PB1" (effects (font (size 1.27 1.27))))
        (number "8" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN17" input line)
        (alternate "COMP1_INP" input line)
        (alternate "TIM3_CH1" bidirectional line)
      )
      (pin bidirectional line (at -17.78 12.7 0) (length 2.54)
        (name "PB2" (effects (font (size 1.27 1.27))))
        (number "9" (effects (font (size 1.27 1.27))))
        (alternate "ADC1_IN16" input line)
        (alternate "COMP1_INP" input line)
        (alternate "TIM2_CH2" bidirectional line)
      )
    )
    (symbol "STM8L151F2Ux_0_1"
      (rectangle (start -15.24 35.56) (end 15.24 -2.54)
        (stroke (width 0) (type default) (color 0 0 0 0))
        (fill (type background))
      )
      (rectangle (start -10.16 -53.34) (end -10.16 -53.34)
        (stroke (width 0.1524) (type default) (color 0 0 0 0))
        (fill (type none))
      )
    )
  )
)
