G
Guest
ive created a C# application on a pocket pc which receives raw infrared signals from a remote control into a byte array (using createfile and readfile into the array) but when i use GetValue on an element's contents, its shown as a decimal value up to 255 (1 byte). All the examples Ive seen receive 2 byte hexadecimal numbers which correspond to ir pulses and pauses.
Ive tried combining two 1 byte elements to form one 2 byte element but GetValue returns -1 in decimal after combining two 255 valued elements!
Im trying to find out why (and where) the binary signal is being converted to decimal and if combining 2 elements is the right way to go. I would ideally like a 2 byte hexadecimal signal so that i can follow online examples.
Please help, ive spent ages on this and im running out of time!
Ive tried combining two 1 byte elements to form one 2 byte element but GetValue returns -1 in decimal after combining two 255 valued elements!
Im trying to find out why (and where) the binary signal is being converted to decimal and if combining 2 elements is the right way to go. I would ideally like a 2 byte hexadecimal signal so that i can follow online examples.
Please help, ive spent ages on this and im running out of time!