# Trying to create a printer.cfg. Is it possible to get fan pin and stepper current info from marlin source?

**URL:** <https://klipper.discourse.group/t/trying-to-create-a-printer-cfg-is-it-possible-to-get-fan-pin-and-stepper-current-info-from-marlin-source/6220>\
**Category:** General Discussion\
**Created:** [January 26, 2023, 8:42pm UTC](https://klipper.discourse.group/t/trying-to-create-a-printer-cfg-is-it-possible-to-get-fan-pin-and-stepper-current-info-from-marlin-source/6220 "2023-01-26T20:42:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [January 27, 2023, 7:13am UTC](https://klipper.discourse.group/t/trying-to-create-a-printer-cfg-is-it-possible-to-get-fan-pin-and-stepper-current-info-from-marlin-source/6220/2 "2023-01-27T07:13:14Z")

</div>

Following is the logic and the way how to find such information in Marlin sources:

1. Identify the `MOTHERBOARD` in the relevant `Configuration.h`
2. Find it in `boards.h`
3. Then scroll up in `boards.h` to see which is the leading MCU type
4. Find the `pins_XXX.h` in the relevant folder of the MCU type

## #1

> <https://github.com/Sovol3d/Sv06-Source-Code/blob/315aa28b5c1438b36ae17dc43500cfc70e7e24b0/Marlin/Configuration.h#L143>

## #2

> <https://github.com/Sovol3d/Sv06-Source-Code/blob/315aa28b5c1438b36ae17dc43500cfc70e7e24b0/Marlin/src/core/boards.h#L358>

## #3

> <https://github.com/Sovol3d/Sv06-Source-Code/blob/315aa28b5c1438b36ae17dc43500cfc70e7e24b0/Marlin/src/core/boards.h#L297>

## #4

> <https://github.com/Sovol3d/Sv06-Source-Code/blob/main/Marlin/src/pins/stm32f1/pins_SOVOL_V131.h>

---

_[View the full topic](https://klipper.discourse.group/t/trying-to-create-a-printer-cfg-is-it-possible-to-get-fan-pin-and-stepper-current-info-from-marlin-source/6220)._
