Skip to content

Instantly share code, notes, and snippets.

View sreichholf's full-sized avatar

reichi sreichholf

View GitHub Profile
blueprint:
source_url: https://github.com/Damian666/HomeAssistant/blob/2932abecbb73ddf09a47d1a3d8c759073b0b070f/blueprints/automation/Damian666/Lidl_4Button_Remote_Switch.yaml
name: ZHA - Lidl 4Button Remote Switch - TYZB01_hww2py6b
description: Automate your Lidl/LivarnoLux 4Button Remote Switch using ZHA events. (TYZB01_hww2py6b)
domain: automation
input:
Lidl_4Button_Remote_switch:
name: Lidl 4Button Remote Switch
description: Select the Lidl 4Button Remote Switch to use
selector:
blueprint:
source_url: https://github.com/Damian666/HomeAssistant/blob/2932abecbb73ddf09a47d1a3d8c759073b0b070f/blueprints/automation/Damian666/Lidl_4Button_Remote_Switch.yaml
name: ZHA - Lidl 4Button Remote Switch - TYZB01_hww2py6b
description: Automate your Lidl/LivarnoLux 4Button Remote Switch using ZHA events. (TYZB01_hww2py6b)
domain: automation
input:
Lidl_4Button_Remote_switch:
name: Lidl 4Button Remote Switch
description: Select the Lidl 4Button Remote Switch to use
selector:
@sreichholf
sreichholf / metadata.pegasus.txt
Created November 20, 2020 12:09
pegasus ppsspp
collection: PSP
extensions: cso, iso, pbp, zip, chd
launch: am start
--user 0
-a android.intent.action.VIEW
-n org.ppsspp.ppsspp/.PpssppActivity
-d "file://{file.path}"
{
"colorOrder" : "rgb",
"maxpacket" : 1450,
"name" : "AmbiSZ-ESP8266",
"output" : "ESP8266:19446", ///
"protocol" : 0,
"rate" : 250000,
"type" : "udp"
},
FROM ubuntu:xenial
VOLUME /oe
VOLUME /home
RUN apt-get update && apt-get install -y \
python \
dbus \
unattended-upgrades \
net-tools \
diff --git a/radio/src/audio_arm.cpp b/radio/src/audio_arm.cpp
index 1d1bd6f..0dccc94 100644
--- a/radio/src/audio_arm.cpp
+++ b/radio/src/audio_arm.cpp
@@ -511,9 +511,22 @@ void audioTask(void * pdata)
}
#endif
+#if defined(SOFTWARE_VOLUME)
+extern uint8_t currentSpeakerVolume;
#include "i2c_driver.h"
#include "twi.h"
#include "board.h"
#include "stdlib.h"
#define I2C_CLK_FAST 400000
uint32_t fromBCD(uint8_t bcd_value) {
return (((bcd_value & 0xF0) * 10) >> 4) + (bcd_value & 0x0F);
}
def someFunction(arg1, arg2, arg3="test"):
.....
event = None
def getCurrentServiceEvent():
epgcache = eEPGCache.getInstance()
if epgcache is not None:
sref = self.session.nav.getCurrentlyPlayingServiceReference()
if sref is not None:
event = epgcache.lookupEvent(['RIBDT', (sref.toString(), 0, -1, -1)])
return event