After a little research I found out that the code I previously posted is the binary of the code and that it looks way different. Thanks for trying to help though. To get the projector sequence and turn it into tv-b-gone code I can just use my Samsung Galaxy Tab 4 to send the codes from the app and receive it using an Arduino. Then I can translate the code and put it on my ATtiny.......If anyone wants to know how to translate the code look at the bottom of this post
convertion:
1. Find IR Sequence (look on google and you'll find pictures of what I mean) 2.find ms on the ms off and so on (emmited twice so multiply) 3.right it out const struct powercode sonyCode PROGMEM = { freq_to_timerval(38400), // 38.4 KHz {{240, 60}, {120, 60}, {60 , 60}, {120, 60}, {60 , 60}, {120, 60}, {60 , 60}, {60 , 60}, {120, 60}, {60 , 60}, {60 , 60}, {60 , 60}, {60 , 2700}, {240, 60}, {120, 60}, {60 , 60}, {120, 60}, {60 , 60}, {120, 60}, {60 , 60}, {60 , 60}, {120, 60}, {60 , 60}, {60 , 60}, {60 , 60}, {60 , 0}// end of code } }; 4.Translate Index # PWM ON OFF 0 0.6 ms 0.6 ms 1 0.6 ms 270 ms 2 1.2 ms 0.6 ms 3 2.4 ms 0.6 ms 5.Time Table const uint16_t code_na000Times[] PROGMEM = { 60, 60, 60, 2700, 120, 60, 240, 60, }; 6.Translate Code (step 4) to binary #0 = 00 #1 = 01 #2 = 10 #3 = 11 7.Deep Compression 1110001000100000100000000111100010001000001000000001 to 8-bits 11100010 00100000 10000000 01111000 10001000 00100000 0001 Fix Code 11100010 00100000 10000000 01111000 10001000 00100000 00010000 In Hex E2208078882010 Translate (seperate every 2 chars) E2 20 80 78 88 20 10 Translate (add 0xchar pair) 0xE2 0x20 0x80 0x78 0x88 0x20 0x10 8.Order Code // The structure of compressed code entries struct IrCode { uint8_t timer_val; uint8_t numpairs; uint8_t bitcompression; uint16_t const *times; uint8_t codes[]; }; 9.Rewrite Code With IR Senquence const struct IrCode code_na000Code PROGMEM = { freq_to_timerval(38400), 26, // # of pairs 2, // # of bits per index code_na000Times, { 0xE2, 0x20, 0x80, 0x78, 0x88, 0x20, 0x10, } };