Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Invert output Teensy 2.0

  1. #1
    Junior Member
    Join Date
    Dec 2018
    Posts
    1

    Invert output Teensy 2.0

    Hi guys,
    I'm new on coding teensy and I want little help.

    Basically I build a Pc gamepad using a Teensy 2.0 and so far it work great. But I want to invert an input so when a button is pressed, the pc see this button deactivated.

    Since I didn't write the code, just adapted to fit my needs, I think the teensy is set in pullout and that's it!

    Anyone have an idea how I can do this, if this is possible!!

    Thanks!

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,426
    Easiest is to edit the code.
    Unfortunately we can't say more because we have no information about it. Maybe line 2367.

    Edit: If you dont want to edit the code you can add a transistor as inverter.
    Again, not enough information about your project to say more..
    Last edited by Frank B; 12-28-2018 at 05:28 PM.

  3. #3
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,426
    Can you post the code?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •