Skip to content

Instantly share code, notes, and snippets.

@egeltje
egeltje / main.cpp
Created December 24, 2018 10:46
handling M5stack button interrupts in FreeRTOS
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <driver/gpio.h>
#include <M5Stack.h>
#include <esp_log.h>
//#include <Arduino.h>
#include "sdkconfig.h"
#define ESP_INTR_FLAG_DEFAULT 0
#define CONFIG_LOG_DEFAULT_LEVEL 5 // set to debug, check with serial monitor

Keybase proof

I hereby claim:

  • I am egeltje on github.
  • I am egeltje (https://keybase.io/egeltje) on keybase.
  • I have a public key whose fingerprint is 52B8 BE8B 74F0 F86C B136 11B0 EC1A 2FE0 415D 1709

To claim this, I am signing this object: