mirror of
				https://github.com/Show-maket/IR-protocol.git
				synced 2025-10-30 18:42:35 +00:00 
			
		
		
		
	tune as parameter
This commit is contained in:
		| @ -1,7 +1,14 @@ | ||||
| #include "IR_Encoder.h" | ||||
| #include "IR_Decoder.h" | ||||
|  | ||||
| IR_Encoder::IR_Encoder(uint16_t addr, uint8_t pin, IR_Decoder* decPair) : ir_out(pin), addrSelf(addr), decoder(decPair) {}; | ||||
| IR_Encoder::IR_Encoder(uint16_t addr, uint8_t pin, uint8_t tune = 0, IR_Decoder* decPair) { | ||||
|     ir_out = pin; | ||||
|     addrSelf = addr; | ||||
|     decoder = decPair; | ||||
|     carrierTune = tune; | ||||
|     halfPeriod = (carrierPeriod / 2) - carrierTune; | ||||
|  | ||||
| }; | ||||
| IR_Encoder::~IR_Encoder() {}; | ||||
|  | ||||
| void IR_Encoder::sendACK(uint16_t addrTo, uint8_t addInfo, bool forAll = false) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user