You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mathieu 5c2d27f7dd
Update README.md
5 years ago
HIB.cpp Callback get state information 6 years ago
HIB.h Callback get state information 6 years ago
README.md Update README.md 5 years ago

README.md

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() {}