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.
|
Forum Index : Microcontroller and PC projects : Using an Apple IR Remote with MicroMite
Page 2 of 2 | |||||
Author | Message | ||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
One thing worth adding immediately before the IRETURN is a loop to clear the One array (set all to 0). This will help! WW For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925 |
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. |
||||
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925 |
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!!!! |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
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 For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925 |
Brilliant!!!! |
||||
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925 |
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. |
||||
Page 2 of 2 |
Print this page |