Skip to content

Instantly share code, notes, and snippets.

@igrr
igrr / esp32c3_gpio_interrupt.c
Created May 3, 2022 18:53 — forked from ermacv/esp32c3_gpio_interrupt.c
Code to reproduce "interrupt is not triggered during the light sleep" on ESP32-C3 (updated)
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "driver/gpio.h"
#include "esp_pm.h"
#include "esp_log.h"
#include "esp_sleep.h"
@igrr
igrr / idos.py
Last active July 13, 2021 19:25 — forked from grafuls/idos.py
python script for getting time left for next bus with idos(Brno)
from bs4 import BeautifulSoup as bs
from dateutil import parser
from datetime import datetime
import requests
import re
# search for all buses leaving from one station in any direction
URL = 'http://jizdnirady.idnes.cz/brno/odjezdy/?f=cervinkova&fc=302003&lng=E&submit=true'