Quote Originally Posted by komoe01 View Post
When I change code, old result 0 turn to 255. All the keys press are same.
It works fine for me. It's impossible for me to guess at what changes you have made to it. Try to test it using my code exactly as written. Once that works, try modifying it for your application, going step by step to isolate where the problem is being introduced.

The waves you've attached (including the second one) are not NEC IR protocol.

How are you sending the IR codes?