Beispiel #1
0
LOCAL void ICACHE_FLASH_ATTR button_long_press() {
	button_set_response("Long Press");
	
	debug("CONFIG: Restore defaults\n");
	user_config_restore_defaults();
	user_config_load();
}
Beispiel #2
0
LOCAL void ICACHE_FLASH_ATTR button_long_release() {
	button_set_response("Long Release");
}
Beispiel #3
0
LOCAL void ICACHE_FLASH_ATTR button_short_release() {
	button_set_response("Short Release");
	setTimeout(memory_info,  NULL, 100);
}
Beispiel #4
0
LOCAL void ICACHE_FLASH_ATTR button_press() {
	button_set_response("Press");
}
Beispiel #5
0
LOCAL void ICACHE_FLASH_ATTR button_long_press() {
	button_set_response("Long Press");
	setTimeout(button_close_connections, NULL, 500);
	setTimeout(button_restore_defaults,  NULL, 1000);
}
Beispiel #6
0
LOCAL void ICACHE_FLASH_ATTR button_press() {
	button_set_response("Press");
	#if DEVICE == PLUG
	user_relay_toggle();
	#endif
}