|
Forum Index : Microcontroller and PC projects : Problem with CSUB NECSend
| Author | Message | ||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 979 |
Hi, I have the problem that I have to find out from a monitor the device address and the code of which I do not have a remote control. Probably the monitor uses the NEC code... It would be easiest to send all sorts of addresses and codes and wait for the monitor to turn on. And now my problem: I use this C-Function from Peter - it works very well! But... When I try to use variables for device and code instead of constants for "NECSend pin_number, device, code" the CSUB fails! It sends always the same (garbage). It seems that this function doesn't work with variables! Is there a way to use this function with variables so that I can program a loop to send all possibilities? Thanks! Frank |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10570 |
I suspect you are using floating point variables. They must be integers. |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 979 |
Hi Peter, thank you so very much! "DIM INTEGER device, code" do the trick!!! ...and I found out the correct codes for my monitor!!! Frank |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |