# Using Pronto hex .CCF discrete codes in arduino

Hi guys,

have some time I'm trying to find a way to use my Pronto library in arduino, but without any sucess. I need some sketch in arduino to use a Pronto Hex file in .CCF format, like this:

0000 006b 0000 0032 0081 0040 0010 0010 0010 0010 0010 0030 0010 0010 0010 0030 0010 0010 0010 0030 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0030 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0030 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0030 0010 0030 0010 0030 0010 0010 0010 0b33

or some way to convert this to NEC, like this:
0x02FD48B7

or convert the pronto .CCF code into R5, anything that I can use in my arduino sketch

Does anyone knows a way to do this?

thanks

Hello arduino friend.

You must convert each hex number to decimal after multiple with *26 the result is usecs pulse. (1/38000Hz =0.000026 )

To understand the data you posted (Pronto hex format) I suggest you read the following: Infra Red Explained - Remotes Homepage

006b = frequency

0032 = number total bits

0081 0040 = Header pulses On PWM /Off wait

0010 0010 = bit 0

0010 0030 = bit 1

then if you have the total binary convert it to hex like your example...

I think it is not NEC protocol....i understand it from header...

I have example into my website.

Thanks for answer, actually I'm having reading about what means this code, but I still have difficult to convert it to use with arduino.

There is an easier way to convert this, or some sketch in arduino where I can use this codes?