# Where is AS4147\_SPI defined?

**URL:** https://community.simplefoc.com/t/where-is-as4147-spi-defined/6609
**Category:** Uncategorized
**Tags:** as5047, esp32
**Created:** [January 19, 2025, 7:30pm UTC](https://community.simplefoc.com/t/where-is-as4147-spi-defined/6609 "2025-01-19T19:30:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gimbal\_pete](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/g/ecccb3/32.png) [@gimbal\_pete](https://community.simplefoc.com/u/gimbal_pete)
#### Post date: [January 19, 2025, 7:30pm UTC](https://community.simplefoc.com/t/where-is-as4147-spi-defined/6609/1 "2025-01-19T19:30:44Z")

</div>

Hi guys, I’m following this through:

> **[Magnetic sensor SPI](https://docs.simplefoc.com/magnetic_sensor_spi)**
>
> Arduino Simple Field Oriented Control (FOC) library .

And it references AS4147\_SPI however I could not find where it was defined, having checked out the github repos.

Anyone know where it is defined?

Thanks.

---

<div class="post-metadata">

### Author: ![motormaker](https://community.simplefoc.com/user_avatar/community.simplefoc.com/motormaker/32/8090_2.png) [@motormaker](https://community.simplefoc.com/u/motormaker)
#### Post date: [January 19, 2025, 9:21pm UTC](https://community.simplefoc.com/t/where-is-as4147-spi-defined/6609/2 "2025-01-19T21:21:02Z")

</div>

I am pretty sure that should actually be AS **5** 147\_SPI, of which you will find numerous instances in the library. It looks like a typo on the documentation page you have linked.

```auto
MagneticSensorSPI as5047u = MagneticSensorSPI(10, AS4147_SPI);

```
