Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Required Libraries for compilation

# Encoder by Paul Stoffregen
https://docs.arduino.cc/libraries/encoder

# IRremote by shirriff, z3t0, ArminJo
https://docs.arduino.cc/libraries/irremote
4 changes: 1 addition & 3 deletions ax2358f.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef ax2358f_H_
#define ax2358f_H_
#include <IRremote.h>
#include <IRremoteInt.h>
#include <IRremoteTools.h>
#include <IRremote.hpp>

#include <Arduino.h>
#include <Wire.h>
Expand Down
7 changes: 3 additions & 4 deletions ax2358f.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ byte serialLength = 0;

//Encoder encMain(ENC_A, ENC_B);
IRrecv irReceiver(IR);
decode_results res;

//The setup function is called once at startup of the sketch
void setup() {
Serial.begin(SERIAL_SPEED);
irReceiver.enableIRIn();
irReceiver.begin(IR, ENABLE_LED_FEEDBACK);
Wire.begin();

pinMode(LED_CLK, OUTPUT);
Expand Down Expand Up @@ -86,8 +85,8 @@ void loop() {
encPosition = encNew;
}
#endif // End of comment by jithin
if (irReceiver.decode(&res)) {
handleInfrared(res.value);
if (irReceiver.decode()) {
handleInfrared(irReceiver.decodedIRData.decodedRawData);
delay(30);
irReceiver.resume();
}
Expand Down