# clickButton library

**URL:** https://community.particle.io/t/clickbutton-library/2658
**Category:** Libraries
**Created:** [February 6, 2014, 11:35pm UTC](https://community.particle.io/t/clickbutton-library/2658 "2014-02-06T23:35:23Z")
**Posts on this page:** 1
**Showing post:** 24

<div class="post-metadata">

### Author: ![emilkl](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@emilkl](https://community.particle.io/u/emilkl)
#### Post date: [March 14, 2016, 10:34am UTC](https://community.particle.io/t/clickbutton-library/2658/24 "2016-03-14T10:34:06Z")

</div>

Hello, sorry should have included that information.

Im using the Particle webide and a Photon.  
I created a new clickButton.h file and copy pasted the .h code in to it,  
then i also copy pasted the .cpp code in to the clickButton.cpp file.

I guess i need to make use of the #include command?  
When i hit varify code i get that message.

I tried to include the clickButton.h to the .cpp file then i get other errors ☹

```
In file included from clickButton.cpp:2:0:
clickButton.h:8:25: error: expected ')' before 'buttonPin'
ClickButton(uint8_t buttonPin);

```

Note that im under process of learning so im not an advanced user 🙂

Many thanx  
Dimi

---

_[View the full topic](https://community.particle.io/t/clickbutton-library/2658)._
