Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
jbae
Level 1
Level 1
First question asked Welcome!

Hello,

 

I have PSOC4700S(CY8CKIT-148 Eval kit) and I'm trying to use DRV2605 open source code for Arduino on PSOC creator.

I've downloaded the library from here: https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout/arduino-code

I'm using the CY8CKIT-148 board for inductive sensing switches and trying to connect DRV2605 motor driver to the CY8CKIT-148 board using I2C and activate the haptic motor when the switches are pressed.

Do you have any idea how I can add this open library to PSOC source code?

 

Thank you!

0 Likes
1 Solution
jepaz
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked
Hi,
It's not as easy as in Arduino
You need to port the library (convert it)
Arduino uses C++ psoc runs on C

You can look for C libraries for that component sometimes a library for an
ST or TI MCU can be similar enough to only require some Hardware interface
changes.

PSoC creator has a really cool way of making libraries with the component
creator ( you end up making configurable libraries) look it up component
creator

Hope this helps

View solution in original post

0 Likes
1 Reply
jepaz
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked
Hi,
It's not as easy as in Arduino
You need to port the library (convert it)
Arduino uses C++ psoc runs on C

You can look for C libraries for that component sometimes a library for an
ST or TI MCU can be similar enough to only require some Hardware interface
changes.

PSoC creator has a really cool way of making libraries with the component
creator ( you end up making configurable libraries) look it up component
creator

Hope this helps
0 Likes