# Library for Photon2 + PCA9634

**URL:** <https://community.particle.io/t/library-for-photon2-pca9634/63115>\
**Category:** Libraries\
**Tags:** photon2\
**Created:** [September 6, 2022, 10:25am UTC](https://community.particle.io/t/library-for-photon2-pca9634/63115 "2022-09-06T10:25:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParthPatel](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@ParthPatel](https://community.particle.io/u/ParthPatel)\
**Post date:** [September 6, 2022, 10:25am UTC](https://community.particle.io/t/library-for-photon2-pca9634/63115/1 "2022-09-06T10:25:23Z")

</div>

Hiii there,

Is there any library available for PCA9634 8-channal-PWM chip?..  
I am currently working on PCA9634 chip with Photon2 but could not find any Reference of working with Particle device. Any reference available working with 8-channal PWM chip?

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [September 6, 2022, 11:22am UTC](https://community.particle.io/t/library-for-photon2-pca9634/63115/2 "2022-09-06T11:22:36Z")

</div>

Have you seen this?

> **[Particle Web IDE](https://build.particle.io/libs/PCA9534/0.1.4/tab/PCA9534.cpp)**
>
> Write and flash code to your Particle devices

---

<div class="post-metadata">

**Author:** ![ParthPatel](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@ParthPatel](https://community.particle.io/u/ParthPatel)\
**Post date:** [September 7, 2022, 4:18am UTC](https://community.particle.io/t/library-for-photon2-pca9634/63115/3 "2022-09-07T04:18:51Z")

</div>

Thank you for your Response.  
I already seen…

> **[Particle Web IDE](https://build.particle.io/libs/PCA9534/0.1.4/tab/PCA9534.cpp)**
>
> Write and flash code to your Particle devices

PCA9534 work as IO Expander. My requirements is PWM which is not used in PCA9534 so that this is not compatible to my requirements…

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [September 7, 2022, 9:17am UTC](https://community.particle.io/t/library-for-photon2-pca9634/63115/4 "2022-09-07T09:17:46Z")

</div>

My bad, sorry 😊 🙈

However, have you found an Arduino library for that chip?  
If it’s anything like the PCA9534 it would only use standard I2C communication and hence should be easily portable (with virtually no changes required).

You could give this one a try.

> **[GitHub - mmojana/pca9634-arduino-library: Arduino library for the PCA9634...](https://github.com/mmojana/pca9634-arduino-library)**
>
> Arduino library for the PCA9634 chip (I2C PWM LED driver) - GitHub - mmojana/pca9634-arduino-library: Arduino library for the PCA9634 chip (I2C PWM LED driver)

What IDE are you using?

---

<div class="post-metadata">

**Author:** ![ParthPatel](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@ParthPatel](https://community.particle.io/u/ParthPatel)\
**Post date:** [September 9, 2022, 7:53am UTC](https://community.particle.io/t/library-for-photon2-pca9634/63115/5 "2022-09-09T07:53:54Z")

</div>

> **[GitHub - mmojana/pca9634-arduino-library: Arduino library for the PCA9634...](https://github.com/mmojana/pca9634-arduino-library)**
>
> Arduino library for the PCA9634 chip (I2C PWM LED driver) - GitHub - mmojana/pca9634-arduino-library: Arduino library for the PCA9634 chip (I2C PWM LED driver)

I tried this library already for pca9634 in particle but this library gets some error in compilation…  
I used Visual Studio Code for uploading firmware in Particle.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [September 9, 2022, 8:30am UTC](https://community.particle.io/t/library-for-photon2-pca9634/63115/6 "2022-09-09T08:30:31Z")

</div>

> [@ParthPatel](#):
>
> but this library gets some error in compilation…

In that case it's best to also post _ **which** _ errors you see.  
There might be simple solutions to many of them.

* * *

Unfortunately I still didn't receive a Photon 2/P2 so I can only talk from theory 😉

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [September 9, 2022, 4:00pm UTC](https://community.particle.io/t/library-for-photon2-pca9634/63115/7 "2022-09-09T16:00:48Z")

</div>

is this the same error as what you reported here?

> [@P1 to P2 migration](https://community.particle.io/t/p1-to-p2-migration/63150):
>
> Hello, I am try to compile P1 code into P2 using Visual Studio Code i do necessary changes in my firmware according to P2 but there is an error while compile firmware… #################################### Executing task: make -f ‘C:\Users\Ecloud15.particle\toolchains\buildscripts\1.11.0\Makefile’ compile-user -s :::: COMPILING APPLICATION Creating d:/Parth/project/target/5.0.0/p2/memory\_platform\_user.ld … make[3]: \*\*\* No rule to make target ‘d:\parth\project\src\project.cpp’, needed by ‘……

---

<div class="post-metadata">

**Author:** ![ParthPatel](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@ParthPatel](https://community.particle.io/u/ParthPatel)\
**Post date:** [September 10, 2022, 4:24am UTC](https://community.particle.io/t/library-for-photon2-pca9634/63115/8 "2022-09-10T04:24:13Z")

</div>

No no there is an different error . This error is not related to PCA9634 + Photon2 topic…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/6/4/64635adccc35238caa19e9b553ec3e98b163d026.png) [@system](https://community.particle.io/u/system)\
**Post date:** [November 9, 2022, 4:24am UTC](https://community.particle.io/t/library-for-photon2-pca9634/63115/9 "2022-11-09T04:24:20Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
