Search results

  1. G

    NPN Open Collector

    Brilliant! Thanks a lot for your answer!
  2. G

    NPN Open Collector

    Exactly my point... teensy has one according to this http://www.pjrc.com/teensy/tutorial3.html It states examples of connecting a push button through a 10k resistor first, then directly using pinMode(8, INPUT_PULLUP)... Anyway, not going to take my chances on this one... So 10k it is! Thanks...
  3. G

    NPN Open Collector

    Hey guys, Quick question here... I'm using Teensy2 and would like to have an input from a IR sensor that outputs a NPN Open Collector signal (PEM7D, http://www.vellemanusa.com/products/view/?country=us&lang=enu&id=521375)... I know that those are usually seen as basic switches, so I could use...
  4. G

    Call function in parallel of loop

    Thanks to all of you. Everything is working well now! I just have one question, but that may be build in functionality. I setup interrupts on INT2 and INT3 on the teensy 2. The problem is, every interrupt on INT2 also triggers the one on INT3. Is that related to RX / TX being linked? For...
  5. G

    Call function in parallel of loop

    Thanks a lot guys. I'm going to try to implement both elapsedMillis and arrays to make the code more simple. For elapsedMillis, I'm fairly clear and my inital tests work perfectly. Now, I still have one question that is not vital (basically the code works without the arrays): How do you...
  6. G

    Call function in parallel of loop

    OK, you're in my living room right??? You have to be looking above my shoulder! that's exactly the problem I ran into! Thanks for anticipating. I will try to implement your solution (which makes a lot of sense!)
  7. G

    Call function in parallel of loop

    Thank you so much! I'm really impressed, such a quick reply! I've done exactly has you suggested and it works wonders... For reference and in case somebody else is wondering, here's my code... Cheers int ledPin = 11; int buttonPin = 7; int lighton = 0; //used to monitor multiple...
  8. G

    Call function in parallel of loop

    Hello Guys, I just received my teensy 2 and I'm super excited to experience with it! This is really cool stuff... I have a small questions. I'm trying to use the T2 as a keyboard with two buttons. Every time a button is pressed, it triggers an action on the computer (I already have that part...
Back
Top