<commit_before>#ifndef IRSignalSender_h
#define IRSignalSender_h

#include "Arduino.h"

class IRSignalSender
{
	public:
		IRSignalSender(uint8_t pin);
		void sendCommand(uint8_t command);
	private:
		uint8_t _IRledPin;
		uint16_t _NumIRsignals;
		void parsePulse(uint8_t command);
		void pulseIR(long microsecs);

		 
		// Select the HVAC brand/model:
		// @TODO: This has to be selected in the instantiation
		#define HVAC_BRAND 2
		// Midea
		#if HVAC_BRAND == 1
		const uint8_t cmd_on[201] 	= {100,211,206,27,77,26,25,27,77,26,77,26,25,27,25,27,77,26,25,27,25,27,77,26,26,26,26,26,77,26,77,26,26,26,77,27,77,26,25,27,77,26,77,26,77,27,76,27,76,27,77,26,26,26,77,27,25,26,25,27,25,27,25,27,25,26,26,26,26,26,77,27,25,27,76,27,25,27,25,27,25,26,26,26,77,27,25,27,77,26,25,27,77,26,77,27,76,27,76,27,247,211,207,26,77,26,26,26,77,27,76,27,25,27,25,27,76,27,25,27,25,26,78,26,25,27,25,27,76,27,76,27,25,27,77,27,76,27,25,27,77,26,77,26,77,27,76,27,76,27,77,26,25,27,77,27,25,26,25,27,25,27,25,27,25,27,25,26,26,26,77,27,25,27,76,27,25,27,25,27,25,26,26,26,78,26,25,27,77,26,26,26,77,27,76,27,76,27,77,26,0};
		const uint8_t cmd_off[201] 	= {100,211,206,27,77,26,25,27,77,26,77,26,25,27,25,27,77,26,25,27,25,27,77,26,26,26,26,26,77,26,77,26,26,26,77,27,77,26,25,27,77,26,77,26,77,27,76,27,76,27,77,26,26,26,77,27,25,26,25,27,25,27,25,27,25,26,26,26,26,26,77,27,25,27,76,27,25,27,25,27,25,26,26,26,77,27,25,27,77,26,25,27,77,26,77,27,76,27,76,27,247,211,207,26,77,26,26,26,77,27,76,27,25,27,25,27,76,27,25,27,25,26,78,26,25,27,25,27,76,27,76,27,25,27,77,27,76,27,25,27,77,26,77,26,77,27,76,27,76,27,77,26,25,27,77,27,25,26,25,27,25,27,25,27,25,27,25,26,26,26,77,27,25,27,76,27,25,27,25,27,25,26,26,26,78,26,25,27,77,26,26,26,77,27,76,27,76,27,77,26,0};
		// Samsung TV (for testing prouposes)
		#elif HVAC_BRAND == 2
		const uint8_t cmd_on[69] 	= {34,214,211,28,78,28,78,29,78,28,25,28,25,28,26,28,25,28,26,28,78,28,78,28,78,29,25,28,25,28,26,28,25,28,25,29,25,28,78,28,25,28,26,28,25,28,26,28,25,28,25,28,79,28,25,28,78,28,79,28,78,28,78,29,78,28,78,28,0};
		const uint8_t cmd_off[69] 	= {34,214,211,28,78,28,78,29,78,28,25,28,25,28,26,28,25,28,26,28,78,28,78,28,78,29,25,28,25,28,26,28,25,28,25,29,25,28,78,28,25,28,26,28,25,28,26,28,25,28,25,28,79,28,25,28,78,28,79,28,78,28,78,29,78,28,78,28,0};
		// York
		#elif HVAC_BRAND == 3
		const uint8_t cmd_on[231] 	= {115,146,144,146,208,29,77,28,25,28,77,28,24,29,24,29,76,29,76,28,24,29,24,29,76,29,24,28,77,28,25,28,77,28,76,29,24,29,24,29,24,28,77,28,24,29,25,28,77,28,24,28,24,29,24,29,25,27,25,28,24,29,24,29,25,27,25,28,24,29,24,29,76,29,76,29,24,28,25,28,25,28,76,28,25,29,24,28,25,28,76,29,25,28,24,29,24,28,24,29,25,27,25,28,25,28,24,29,25,27,25,29,23,29,24,29,24,28,25,28,24,29,76,29,24,29,24,28,25,28,24,29,24,29,24,28,25,28,24,29,24,29,24,28,25,28,24,28,25,29,24,28,25,28,24,29,24,29,24,28,25,28,24,28,25,28,24,29,25,27,25,29,24,29,24,28,25,28,24,28,24,29,24,29,25,27,25,28,25,28,24,29,25,27,25,28,25,28,24,29,24,28,25,29,23,29,24,29,76,29,24,28,77,28,77,28,76,29,24,29,24,29,23,29,76,29,76,29,76,28,0};
		const uint8_t cmd_off[231] 	= {115,147,144,146,208,29,76,29,24,29,76,29,24,28,25,28,77,28,76,29,25,27,25,28,77,28,25,28,77,28,24,29,76,29,76,29,24,28,25,28,25,28,77,28,24,29,24,29,76,29,23,29,24,29,24,28,25,28,25,28,25,27,25,29,24,28,24,29,24,28,25,28,25,28,77,28,24,29,24,28,25,28,77,28,76,29,24,28,24,29,76,29,25,28,24,29,24,28,24,29,25,27,25,29,24,28,24,29,25,28,24,29,24,28,24,29,25,27,25,28,25,28,77,28,24,29,25,27,25,28,24,29,24,29,24,28,25,28,24,29,24,29,24,28,25,28,25,28,24,29,24,28,25,28,24,29,24,29,24,28,25,28,24,28,25,29,24,28,25,28,24,29,24,29,24,28,25,28,24,28,25,28,24,29,25,27,25,29,24,28,25,28,25,28,24,28,24,29,24,29,25,27,25,28,25,28,24,29,76,29,24,28,76,29,77,28,24,29,24,28,25,28,77,28,25,28,24,28,25,28,0};
		#endif
};

#endif<commit_msg>master: Updated Midea signals.<commit_after>#ifndef IRSignalSender_h
#define IRSignalSender_h

#include "Arduino.h"

class IRSignalSender
{
	public:
		IRSignalSender(uint8_t pin);
		void sendCommand(uint8_t command);
	private:
		uint8_t _IRledPin;
		uint16_t _NumIRsignals;
		void parsePulse(uint8_t command);
		void pulseIR(long microsecs);


		//Select the HVAC brand/model:
		//@TODO: This has to be selected in the instantiation
		#define HVAC_BRAND 1
		//Midea
		#if HVAC_BRAND == 1
		const uint8_t cmd_on[201] = {100,211,206,27,77,26,25,27,77,26,77,26,25,27,25,27,77,26,25,27,25,27,77,26,26,26,26,26,77,26,77,26,26,26,77,27,77,26,25,27,77,26,77,26,77,27,76,27,76,27,77,26,26,26,77,27,25,26,25,27,25,27,25,27,25,26,26,26,26,26,77,27,25,27,76,27,25,27,25,27,25,26,26,26,77,27,25,27,77,26,25,27,77,26,77,27,76,27,76,27,247,211,207,26,77,26,26,26,77,27,76,27,25,27,25,27,76,27,25,27,25,26,78,26,25,27,25,27,76,27,76,27,25,27,77,27,76,27,25,27,77,26,77,26,77,27,76,27,76,27,77,26,25,27,77,27,25,26,25,27,25,27,25,27,25,27,25,26,26,26,77,27,25,27,76,27,25,27,25,27,25,26,26,26,78,26,25,27,77,26,26,26,77,27,76,27,76,27,77,26,0};
		const uint8_t cmd_off[201] = {100,209,209,24,79,25,29,22,81,23,79,24,29,23,28,24,79,24,29,23,29,23,79,24,29,23,27,25,80,23,79,24,29,23,80,23,29,23,79,25,78,24,81,23,79,24,28,24,79,24,79,24,79,25,29,23,28,24,28,23,29,23,80,23,29,23,29,23,80,24,78,25,80,23,27,25,27,25,28,23,29,23,28,24,29,23,28,24,29,23,80,23,80,23,80,24,80,23,79,24,249,209,209,24,81,23,28,23,81,23,79,24,27,25,29,23,80,23,29,23,27,24,81,23,29,23,29,23,80,23,80,23,29,23,79,24,28,24,80,24,80,23,79,24,79,24,28,24,79,24,80,23,80,24,29,23,28,24,27,24,29,23,79,24,29,23,29,23,80,24,78,25,80,23,29,23,29,23,28,24,28,23,28,24,28,24,29,23,28,24,80,23,80,24,80,23,80,23,80,23,0};
		//SamsungTV (for testing prouposes)
		#elif HVAC_BRAND == 2
		const uint8_t cmd_on[69] = {34,214,211,28,78,28,78,29,78,28,25,28,25,28,26,28,25,28,26,28,78,28,78,28,78,29,25,28,25,28,26,28,25,28,25,29,25,28,78,28,25,28,26,28,25,28,26,28,25,28,25,28,79,28,25,28,78,28,79,28,78,28,78,29,78,28,78,28,0};
		const uint8_t cmd_off[69] = {34,214,211,28,78,28,78,29,78,28,25,28,25,28,26,28,25,28,26,28,78,28,78,28,78,29,25,28,25,28,26,28,25,28,25,29,25,28,78,28,25,28,26,28,25,28,26,28,25,28,25,28,79,28,25,28,78,28,79,28,78,28,78,29,78,28,78,28,0};
		//York
		#elif HVAC_BRAND == 3
		const uint8_t cmd_on[231] = {115,146,144,146,208,29,77,28,25,28,77,28,24,29,24,29,76,29,76,28,24,29,24,29,76,29,24,28,77,28,25,28,77,28,76,29,24,29,24,29,24,28,77,28,24,29,25,28,77,28,24,28,24,29,24,29,25,27,25,28,24,29,24,29,25,27,25,28,24,29,24,29,76,29,76,29,24,28,25,28,25,28,76,28,25,29,24,28,25,28,76,29,25,28,24,29,24,28,24,29,25,27,25,28,25,28,24,29,25,27,25,29,23,29,24,29,24,28,25,28,24,29,76,29,24,29,24,28,25,28,24,29,24,29,24,28,25,28,24,29,24,29,24,28,25,28,24,28,25,29,24,28,25,28,24,29,24,29,24,28,25,28,24,28,25,28,24,29,25,27,25,29,24,29,24,28,25,28,24,28,24,29,24,29,25,27,25,28,25,28,24,29,25,27,25,28,25,28,24,29,24,28,25,29,23,29,24,29,76,29,24,28,77,28,77,28,76,29,24,29,24,29,23,29,76,29,76,29,76,28,0};
		const uint8_t cmd_off[231] = {115,147,144,146,208,29,76,29,24,29,76,29,24,28,25,28,77,28,76,29,25,27,25,28,77,28,25,28,77,28,24,29,76,29,76,29,24,28,25,28,25,28,77,28,24,29,24,29,76,29,23,29,24,29,24,28,25,28,25,28,25,27,25,29,24,28,24,29,24,28,25,28,25,28,77,28,24,29,24,28,25,28,77,28,76,29,24,28,24,29,76,29,25,28,24,29,24,28,24,29,25,27,25,29,24,28,24,29,25,28,24,29,24,28,24,29,25,27,25,28,25,28,77,28,24,29,25,27,25,28,24,29,24,29,24,28,25,28,24,29,24,29,24,28,25,28,25,28,24,29,24,28,25,28,24,29,24,29,24,28,25,28,24,28,25,29,24,28,25,28,24,29,24,29,24,28,25,28,24,28,25,28,24,29,25,27,25,29,24,28,25,28,25,28,24,28,24,29,24,29,25,27,25,28,25,28,24,29,76,29,24,28,76,29,77,28,24,29,24,28,25,28,77,28,25,28,24,28,25,28,0};
		#endif
};

#endif
{'fraction_non_alphanumeric': 0.2846314688970204, 'fraction_numerical': 0.5373758494511239, 'mean_word_length': 22.19090909090909, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5278946', 'n_tokens_mistral': 6796, 'n_tokens_neox': 4657, 'n_words': 167}