This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Update all m3u files | |
# Arguments: working directories | |
# | |
$extensions = @(".mp3", ".m4a", ".flac") | |
$Args | % { | |
ls -r $_ | ? { $_.Extension -eq ".m3u" } | % { | |
$listfile = $_ | |
pushd $listfile.Directory | |
"#EXTM3U" | Out-File $listfile -Encoding utf8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PIN_IR_OUT 4 | |
#define PIN_LED_OUT 2 | |
#define SIGNAL_LEN 7 | |
// AEHA format | |
#define SIGNAL_LEADER_HIGH_TIME 3200 | |
#define SIGNAL_LEADER_LOW_TIME 1600 | |
#define SIGNAL_ON_HIGH_TIME 400 | |
#define SIGNAL_ON_LOW_TIME 1200 | |
#define SIGNAL_OFF_HIGH_TIME 400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PIN_LED_OUT 7 | |
#define PIN_IR_IN 8 | |
// NEC format | |
/* | |
#define SIGNAL_LEADER_HIGH_TIME 16 | |
#define SIGNAL_LEADER_LOW_TIME 8 | |
#define SIGNAL_TIMEOUT 8000 | |
//*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PIN_IR_IN 8 | |
#define SIGNAL_TIMEOUT 8000 | |
#define DATA_LEN 512 | |
short buf[DATA_LEN]; | |
void clearBuf(int range) | |
{ | |
for (int i = 0; i < range; i++) | |
buf[i] = 0; |