# Controlling the Spark Core pins with webpage buttons

**URL:** <https://community.particle.io/t/controlling-the-spark-core-pins-with-webpage-buttons/4506>\
**Category:** Getting Started\
**Created:** [May 21, 2014, 8:21pm UTC](https://community.particle.io/t/controlling-the-spark-core-pins-with-webpage-buttons/4506 "2014-05-21T20:21:29Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![kiwibird1](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kiwibird1](https://community.particle.io/u/kiwibird1)\
**Post date:** [May 23, 2014, 5:20am UTC](https://community.particle.io/t/controlling-the-spark-core-pins-with-webpage-buttons/4506/10 "2014-05-23T05:20:04Z")

</div>

STILL NOT WORKING ON PIN 7.  
Dare I ask, how do we read a0 pin on the web.

this makes it work (same is pin0) so the problem is in the lines above  
&nbsp;digitalWrite(pinNumber, state);  
&nbsp;&nbsp; digitalWrite(7, state);// hard coded as a test. works!

I don’t fully understand the code above and not sure how to do a simple print to console so I can dig into the code

---

_[View the full topic](https://community.particle.io/t/controlling-the-spark-core-pins-with-webpage-buttons/4506)._
