On February 3, 2019 at 11:05, steveye1 said...
Does anyone here have any experience with the arduino IR library?
Yes. It sucks.
I'm trying to send the xbox on/off command, NEC1 (128.216.100) but i can't seem to translate that to a message for the library.
This is the function, what goes in the place of 0x0000000?
"Simple": This is a four byte number. The first byte is the device parameter, with the bits reversed, here 0x01. Second is the subdevice number bit reversed, here 0x27. Third is the function parameter, bit reversed, here 0x38. Fourth is the one-complement of the third, here 0xD9. Together 0x012738D9.
I recommend that you instead try the Arduino library "Infrared4Arduino", available in the Arduino library manager with the name "Infrared". See its example "Nec1Renderer", which does sort-of what you want.