mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2025-06-28 05:09:40 +00:00
formatting
This commit is contained in:
@ -22,7 +22,7 @@
|
||||
IR_Decoder decForward(2, 555);
|
||||
IR_Decoder decBackward(3, 777);
|
||||
|
||||
IR_Encoder encForward(42, &decBackward);
|
||||
IR_Encoder encForward(42/* , &decBackward */);
|
||||
// IR_Encoder encBackward(321, encBackward_PIN);
|
||||
// IR_Encoder encTree(325, A2);
|
||||
|
||||
@ -32,9 +32,9 @@ void decForwardISR() {
|
||||
decForward.isr();
|
||||
}
|
||||
|
||||
void decBackwardISR() {
|
||||
decBackward.isr();
|
||||
}
|
||||
// void decBackwardISR() {
|
||||
// decBackward.isr();
|
||||
// }
|
||||
|
||||
static uint8_t* portOut;
|
||||
ISR(TIMER2_COMPA_vect) {
|
||||
@ -57,7 +57,7 @@ uint8_t data3 [] = { 42 , 127, 137 };
|
||||
uint8_t data4 [] = { 42 , 127, 137, 255 };
|
||||
|
||||
uint32_t loopTimer;
|
||||
uint8_t sig = 255;
|
||||
uint8_t sig = 0;
|
||||
|
||||
uint16_t targetAddr = IR_Broadcast;
|
||||
Timer t1(500, millis, []() {
|
||||
@ -177,12 +177,12 @@ void setup() {
|
||||
|
||||
|
||||
|
||||
IR_DecoderRaw* blindFromForward [] { &decForward, &decBackward };
|
||||
encForward.setBlindDecoders(blindFromForward, sizeof(blindFromForward) / sizeof(IR_DecoderRaw*));
|
||||
// IR_DecoderRaw* blindFromForward [] { &decForward, &decBackward };
|
||||
// encForward.setBlindDecoders(blindFromForward, sizeof(blindFromForward) / sizeof(IR_DecoderRaw*));
|
||||
|
||||
|
||||
attachInterrupt(0, decForwardISR, CHANGE); // D2
|
||||
attachInterrupt(1, decBackwardISR, CHANGE); // D3
|
||||
// attachInterrupt(1, decBackwardISR, CHANGE); // D3
|
||||
}
|
||||
|
||||
void loop() {
|
||||
@ -193,7 +193,7 @@ void loop() {
|
||||
decBackward.tick();
|
||||
|
||||
status(decForward);
|
||||
status(decBackward);
|
||||
// status(decBackward);
|
||||
|
||||
|
||||
// Serial.println(micros() - loopTimer);
|
||||
|
Reference in New Issue
Block a user