Skip to content

Instantly share code, notes, and snippets.

View MacWyznawca's full-sized avatar
🏠
Working from home

Jaromir Kopp MacWyznawca

🏠
Working from home
View GitHub Profile
@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"
@zhuowei
zhuowei / Ensemble.plist
Last active September 18, 2023 06:26
Put this file as /Library/Preferences/FeatureFlags/Domain/Ensemble.plist and reboot to (hopefully) turn on Universal Control on macOS 12
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- not sure which one it is, so set both -->
<key>Ensemble</key>
<dict>
<key>Enabled</key>
<true/>
</dict>
@igrr
igrr / ulp_isr_example_main.c
Last active January 26, 2024 09:47
ESP32 ULP ISR example
#include <stdio.h>
#include <unistd.h>
#include "soc/rtc_cntl_reg.h"
#include "esp32/ulp.h"
#include "driver/rtc_cntl.h"
#include "esp_log.h"
#include "ulp_main.h"
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
@Behinder
Behinder / emojiTime.php
Last active April 19, 2017 11:04
Converts time or number to its representation in emoji symbols
function convertNumberToEmoji($cyfra)
{
switch ($cyfra) {
case '0':
return "\u{30}\u{FE0F}\u{20E3}";
break;
case '1':
return "\u{31}\u{FE0F}\u{20E3}";
@gomfunkel
gomfunkel / elgato-eve.md
Last active September 9, 2023 18:28
Elgato Eve HomeKit Services & Characteristics

Elgato Eve HomeKit Services & Characteristics

A work in progress collection of proprietary and as of yet undocumented HomeKit characteristics and their UUIDs used by Elgato Eve.

This list is not including all Eve accessories available and some services and characteristics still make no sense to me. If you have anything to contribute, please leave a comment. There is no guarantee that the information listed below is correct.

Elgato Eve Energy (Firmware Revision 1.3.1;466)

Service - Characteristic UUID R W Type Description