Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Merge Develop to Main #178

Closed
wants to merge 12 commits into from
16 changes: 16 additions & 0 deletions Custom_Ir_Codes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef _CUSTOM_IR_CODES_H_
#define _CUSTOM_IR_CODES_H_

#include "codes/Alpha_TV_Power_Code.h"
#include "codes/Denver_STB_Power_Code.h"
#include "codes/Fox_TV_Power_Code.h"
#include "codes/Mts_STB_Power_Code.h"
#include "codes/Vox_TV_Power_Code.h"
#include "codes/Blueberry_TV_Power_Code.h"
#include "codes/Tesla_TV_Power_Code.h"
#include "codes/LG_TV_Power_Code.h"
#include "codes/D3MINI_STB_Power_Code.h"

#include "WORLD_IR_CODES.h"

#endif
18 changes: 18 additions & 0 deletions WORLD_IR_CODES.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ TV-B-Gone Firmware version 1.2
(c) Mitch Altman + Limor Fried 2009

*/
#ifndef _WORLD_IR_CODES_H_
#define _WORLD_IR_CODES_H_

//Codes captured from Generation 3 TV-B-Gone by Limor Fried & Mitch Altman
//table of POWER codes

#include "tvbg.h"
#include "Custom_Ir_Codes.h"

const uint16_t code_na000Times[] = {
60, 60,
Expand Down Expand Up @@ -8831,5 +8834,20 @@ const IrCode* const EUpowerCodes[] = {
&code_eu139Code,
};

const IrCode* const CUSTOMpowerCodes[] = {
&code_FoxCode,
&code_LGCode,
&code_TeslaCode,
&code_BlueberryCode,
&code_VoxCode,
&code_MtsSTBCode,
&code_D3MINISTBCode,
&code_DenverSTBCode,
&code_AlphaCode
};

uint8_t num_NAcodes = NUM_ELEM(NApowerCodes);
uint8_t num_EUcodes = NUM_ELEM(EUpowerCodes);
uint8_t num_CUSTOMcodes = NUM_ELEM(CUSTOMpowerCodes);

#endif
65 changes: 65 additions & 0 deletions applejuice.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,71 @@ DeviceType android_models[] = {
{0x92ADC9, "Ton Upgrade Netflix"},
};

inline struct {
uint32_t value;
const char* name;
} buds_models[] = {
{0xEE7A0C, "Fallback Buds"},
{0x9D1700, "Fallback Dots"},
{0x39EA48, "Light Purple Buds2"},
{0xA7C62C, "Bluish Silver Buds2"},
{0x850116, "Black Buds Live"},
{0x3D8F41, "Gray & Black Buds2"},
{0x3B6D02, "Bluish Chrome Buds2"},
{0xAE063C, "Gray Beige Buds2"},
{0xB8B905, "Pure White Buds"},
{0xEAAA17, "Pure White Buds2"},
{0xD30704, "Black Buds"},
{0x9DB006, "French Flag Buds"},
{0x101F1A, "Dark Purple Buds Live"},
{0x859608, "Dark Blue Buds"},
{0x8E4503, "Pink Buds"},
{0x2C6740, "White & Black Buds2"},
{0x3F6718, "Bronze Buds Live"},
{0x42C519, "Red Buds Live"},
{0xAE073A, "Black & White Buds2"},
{0x011716, "Sleek Black Buds2"},
};

struct WatchModel
{
uint8_t value;
const char *name;
};

inline WatchModel* watch_models = new WatchModel[26]
{
{0x1A, "Fallback Watch"},
{0x01, "White Watch4 Classic 44m"},
{0x02, "Black Watch4 Classic 40m"},
{0x03, "White Watch4 Classic 40m"},
{0x04, "Black Watch4 44mm"},
{0x05, "Silver Watch4 44mm"},
{0x06, "Green Watch4 44mm"},
{0x07, "Black Watch4 40mm"},
{0x08, "White Watch4 40mm"},
{0x09, "Gold Watch4 40mm"},
{0x0A, "French Watch4"},
{0x0B, "French Watch4 Classic"},
{0x0C, "Fox Watch5 44mm"},
{0x11, "Black Watch5 44mm"},
{0x12, "Sapphire Watch5 44mm"},
{0x13, "Purpleish Watch5 40mm"},
{0x14, "Gold Watch5 40mm"},
{0x15, "Black Watch5 Pro 45mm"},
{0x16, "Gray Watch5 Pro 45mm"},
{0x17, "White Watch5 44mm"},
{0x18, "White & Black Watch5"},
{0x1B, "Black Watch6 Pink 40mm"},
{0x1C, "Gold Watch6 Gold 40mm"},
{0x1D, "Silver Watch6 Cyan 44mm"},
{0x1E, "Black Watch6 Classic 43m"},
{0x20, "Green Watch6 Classic 43m"},
};


int samsung_buds_count = (sizeof(buds_models) / sizeof(buds_models[0]));

int android_models_count = (sizeof(android_models) / sizeof(android_models[0]));

BLEAdvertisementData oAdvertisementData = BLEAdvertisementData();
Expand Down
29 changes: 29 additions & 0 deletions codes/Alpha_TV_Power_Code.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#ifndef _ALPHA_TV_POWER_CODE_H_
#define _ALPHA_TV_POWER_CODE_H_

#include "../tvbg.h"
#include "../timings/NEC_Times.h"

#define CODE_ALPHA_FREQ 38000

const uint8_t code_AlphaCodes[] PROGMEM = {
0x80,
0x00,
0x15,
0x55,
0x11,
0x10,
0x04,
0x45,
0x70,
};

const struct IrCode code_AlphaCode PROGMEM = {
freq_to_timerval(CODE_ALPHA_FREQ),
NEC_NUM_OF_PAIRS, // # of pairs
NEC_NUM_OF_BITS_PER_INDEX, // # of bits per index
NEC_Times,
code_AlphaCodes
};

#endif
29 changes: 29 additions & 0 deletions codes/Blueberry_TV_Power_Code.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#ifndef _BLUEBERRY_TV_POWER_CODE_H_
#define _BLUEBERRY_TV_POWER_CODE_H_

#include "../tvbg.h"
#include "../timings/NEC_Times.h"

#define CODE_BLUEBERRY_FREQ 38000

const uint8_t code_BlueberryCodes[] PROGMEM = {
0x80,
0x04,
0x15,
0x51,
0x44,
0x11,
0x11,
0x44,
0x70
};

const struct IrCode code_BlueberryCode PROGMEM = {
freq_to_timerval(CODE_BLUEBERRY_FREQ),
NEC_NUM_OF_PAIRS, // # of pairs
NEC_NUM_OF_BITS_PER_INDEX, // # of bits per index
NEC_Times,
code_BlueberryCodes
};

#endif
29 changes: 29 additions & 0 deletions codes/D3MINI_STB_Power_Code.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#ifndef _D3MINI_STB_POWER_CODE_H_
#define _D3MINI_STB_POWER_CODE_H_

#include "../tvbg.h"
#include "../timings/NEC_Times.h"

#define CODE_D3MINISTB_FREQ 38000

const uint8_t code_D3MINISTBCodes[] PROGMEM = {
0x85,
0x00,
0x14,
0x55,
0x45,
0x40,
0x10,
0x15,
0x70
};

const struct IrCode code_D3MINISTBCode PROGMEM = {
freq_to_timerval(CODE_D3MINISTB_FREQ),
NEC_NUM_OF_PAIRS, // # of pairs
NEC_NUM_OF_BITS_PER_INDEX, // # of bits per index
NEC_Times,
code_D3MINISTBCodes
};

#endif
29 changes: 29 additions & 0 deletions codes/Denver_STB_Power_Code.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#ifndef _DENVER_STB_POWER_CODE_H_
#define _DENVER_STB_POWER_CODE_H_

#include "../tvbg.h"
#include "../timings/NEC_Times.h"

#define CODE_DENVERSTB_FREQ 38000

const uint8_t code_DenverSTBCodes[] PROGMEM = {
0x80,
0x00,
0x15,
0x54,
0x50,
0x51,
0x05,
0x04,
0x70,
};

const struct IrCode code_DenverSTBCode PROGMEM = {
freq_to_timerval(CODE_DENVERSTB_FREQ),
NEC_NUM_OF_PAIRS, // # of pairs
NEC_NUM_OF_BITS_PER_INDEX, // # of bits per index
NEC_Times,
code_DenverSTBCodes
};

#endif
29 changes: 29 additions & 0 deletions codes/Fox_TV_Power_Code.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#ifndef _FOX_TV_POWER_CODE_H_
#define _FOX_TV_POWER_CODE_H_

#include "../tvbg.h"
#include "../timings/NEC_Times.h"

#define CODE_FOX_FREQ 37800 // for this freq_to_timerval my tvbgone does 38.0952khz

const uint8_t code_FoxCodes[] PROGMEM = {
0x80,
0x00,
0x15,
0x55,
0x04,
0x40,
0x11,
0x15,
0x70,
};

const struct IrCode code_FoxCode PROGMEM = {
freq_to_timerval(CODE_FOX_FREQ),
NEC_NUM_OF_PAIRS, // # of pairs
NEC_NUM_OF_BITS_PER_INDEX, // # of bits per index
NEC_Times,
code_FoxCodes
};

#endif
29 changes: 29 additions & 0 deletions codes/LG_TV_Power_Code.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#ifndef _LG_TV_POWER_CODE_H_
#define _LG_TV_POWER_CODE_H_

#include "../tvbg.h"
#include "../timings/NEC_Times.h"

#define CODE_LG_FREQ 38000 // for this freq_to_timerval my tvbgone does 38.0952khz

const uint8_t code_LGCodes[] PROGMEM = {
0x81,
0x00,
0x14,
0x55,
0x40,
0x40,
0x15,
0x15,
0x70
};

const struct IrCode code_LGCode PROGMEM = {
freq_to_timerval(CODE_LG_FREQ),
NEC_NUM_OF_PAIRS, // # of pairs
NEC_NUM_OF_BITS_PER_INDEX, // # of bits per index
NEC_Times,
code_LGCodes
};

#endif
29 changes: 29 additions & 0 deletions codes/Mts_STB_Power_Code.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#ifndef _MTS_STB_POWER_CODE_H_
#define _MTS_STB_POWER_CODE_H_

#include "../tvbg.h"
#include "../timings/NEC_Times.h"

#define CODE_MTSSTB_FREQ 40000

const uint8_t code_MtsSTBCodes[] PROGMEM = {
0x94,
0x14,
0x41,
0x41,
0x01,
0x51,
0x54,
0x04,
0x30,
};

const struct IrCode code_MtsSTBCode PROGMEM = {
freq_to_timerval(CODE_MTSSTB_FREQ),
NEC_NUM_OF_PAIRS, // # of pairs
NEC_NUM_OF_BITS_PER_INDEX, // # of bits per index
NEC_Times,
code_MtsSTBCodes
};

#endif
27 changes: 27 additions & 0 deletions codes/Tesla_TV_Power_Code.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#ifndef _TESLA_TV_POWER_CODE_H_
#define _TESLA_TV_POWER_CODE_H_

#include "../tvbg.h"
#include "../timings/RCA_Times.h"

#define CODE_TESLA_FREQ 38000

const uint8_t code_TeslaCodes[] PROGMEM = {
0x95,
0x01,
0x11,
0x00,
0x54,
0x44,
0x70
};

const struct IrCode code_TeslaCode PROGMEM = {
freq_to_timerval(CODE_TESLA_FREQ),
RCA_NUM_OF_PAIRS, // # of pairs
RCA_NUM_OF_BITS_PER_INDEX, // # of bits per index
RCA_Times,
code_TeslaCodes
};

#endif
Loading
Loading