# Spark Core + AccelStepper Library problems

**URL:** <https://community.particle.io/t/spark-core-accelstepper-library-problems/14702>\
**Category:** Libraries\
**Created:** [August 24, 2015, 8:09pm UTC](https://community.particle.io/t/spark-core-accelstepper-library-problems/14702 "2015-08-24T20:09:06Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [August 26, 2015, 5:01am UTC](https://community.particle.io/t/spark-core-accelstepper-library-problems/14702/11 "2015-08-26T05:01:51Z")

</div>

There are several ways (more and less verbose) to connect and there are multiple threads that show how to code it.

One way is shown here  
[Photon/P1 loop()/user code blocking in SEMI\_AUTOMATIC mode](http://community.particle.io/t/photon-p1-loop-user-code-blocking-in-semi-automatic-mode/14089/4)

For your purpose to only connect for OTA flashing, you might want to put the connection logic into a function and trigger that fn via a button.

---

_[View the full topic](https://community.particle.io/t/spark-core-accelstepper-library-problems/14702)._
