Go to file
2017-11-20 17:37:17 +01:00
HIB.cpp Callback get state information 2016-12-07 21:36:29 +01:00
HIB.h Callback get state information 2016-12-07 21:36:29 +01:00
README.md Update README.md 2017-11-20 17:37:17 +01:00

This library is intended to interact with button pluged on a ESP8266 using the Arduino SDK

Code Example

#include <HIB.h>

HIB *button;
HIB *button2;

void onButtonPressed(uint8_t pin) { Serial.printf("Button %d pressed \n", pin); }

void setup()
{
	Serial.begin(115200);
	// put your setup code here, to run once:
	button  = new HIB(0, HIGH, onButtonPressed);
	button2 = new HIB(4, HIGH, onButtonPressed);
}

void loop() {}