Hi Diego,
Yes, I had saw the threads about IR control in the forums.
According to Allyn H reported, the IR sender can be using the digitalWrite() to implement.
Making an IR remote control for a Nikon camera: | Allyn H
But IR recevicer may not be use the digitalRead(), that is too slow. And Adafruit recommend to use "IRpin_PIN & BV(IRpin))", but that is using AVR library.
Please refer to the adafruit learning below.
Using an IR Sensor | IR Sensor | Adafruit Learning System
Have any method to get the IR signal in Galileo x86?
Thanks,