Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2927
Posted: 06:45am 13 Aug 2014
Copy link to clipboard
Print this post
One thing worth adding immediately before the IRETURN is a loop to clear the One array (set all to 0). This will help!
WW
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925
Posted: 06:51am 13 Aug 2014
Copy link to clipboard
Print this post
Ahhhhh, that I will do first before all the rest. Good call.
edit... I guess that if I do it FIRST, it would obviously be before the rest.Edited by viscomjim 2014-08-14
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925
Posted: 11:51am 13 Aug 2014
Copy link to clipboard
Print this post
Hi White,
That seems to have worked. Just cleared the One array to all 0's and haven't had any issues since.
I took a while to write all 200 lines of code...
ONE(1) = 0
ONE(2) = 0
...
...
ONE(200) = 0
but it was worth it.... Just kidding of course!
Thanks a million!!!!Edited by viscomjim 2014-08-14
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2927
Posted: 11:59am 13 Aug 2014
Copy link to clipboard
Print this post
I guess some 'stray' IR caused an interrupt to trigger (possibly from a light bulb!) and the previous values were still held in the One array hence reporting the previous button press.
Glad it's sorted.
WW
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925
Posted: 02:31pm 13 Aug 2014
Copy link to clipboard
Print this post
Brilliant!!!!
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925
Posted: 03:24pm 15 Aug 2014
Copy link to clipboard
Print this post
Hi White, after implementing the clearing of the array, this has been working perfectly. I have shown a few buddies of mine and they are all real impressed since they cannot do this with any of their arduino librararies, All I can say is HA HA HA. Thanks. This opens a few very good doors over here. Using an apple remote for something non apple is freaking people out. I love it.