Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 10:56 08 May 2024 Privacy Policy
Jump to

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 Kingdom
Posts: 2794
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
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 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 States
Posts: 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 Kingdom
Posts: 2794
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
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 02:31pm 13 Aug 2014
Copy link to clipboard 
Print this post

Brilliant!!!!
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 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.
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024