Skip to content

Instantly share code, notes, and snippets.

View ermacv's full-sized avatar

Vladislav Ermachenkov ermacv

  • Russia, Saint-Petersburg
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_pm.h"
void app_main(void) {
static const esp_pm_config_esp32c3_t pm_config = {
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_pm.h"
void app_main(void) {
static const esp_pm_config_esp32c3_t pm_config = {
@ermacv
ermacv / esp32c3_gpio_interrupt.c
Created May 3, 2022 16:21
Code to reproduce "interrupt is not triggered during the light sleep" on ESP32-C3
#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 "driver/gpio.h"
#include <stdbool.h>
#include <stdint.h>
#define DELAY_INIT {0x0000, false}
typedef struct{
uint16_t time;
bool set;
}delay_t;
package main
import (
"log"
"os"
"os/exec"
)
func main() {
cmd := exec.Command("ping", "-c8", "www.google.com")
package main
import "encoding/json"
import "fmt"
//https://gobyexample.com/json
//https://blog.golang.org/json-and-go
type jsonStruct struct {
Key int `json:"key"`