diff --git a/Infrared/ir_convert.js b/Infrared/ir_convert.js new file mode 100644 index 00000000..5f1fb685 --- /dev/null +++ b/Infrared/ir_convert.js @@ -0,0 +1,24 @@ +//usage: node irconvert.js +//steps from https://stackoverflow.com/a/27323452 +//sourced from https://gist.github.com/XMB5/a877ab620d812260f2da8380aac050d3 + +numbers=process.argv[2].split(' ').map(x=>parseInt(x,16)) +fullSequenceConverted=[] + +carrierFrequency = 1000000/(numbers[1] * .241246) +codeLength = numbers[2] +repeatCodeLength = numbers[3] + +for(i=4;i