BITS1 Posted January 6, 2011 Posted January 6, 2011 Hello Everyone, From looking at everyone's posts, I noticed that the solution for Teensy to "recognize" which operating system it's in, is with the help of the dip switches. Teensy is programmed to rely on the user's dip switch combination to execute certain commands. I looked into the Arduino.app that has Teensyduino installed, in one of the pins_teensy.c file, it had if statements like: #if defined(__AVR_ATmega32U4__) ... #if defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__) ... From my understanding, these conditional statements are to identify which version of Teensy it is right? If so, does anyone know how we can also identify the operating system that is running so that Teensy can identify it and execute certain commands? I am not great at programming so I hope you can shed light on this topic. Thank you very much. Bits1 Quote
Netshroud Posted January 13, 2011 Posted January 13, 2011 The Teensy cannot detect the OS running on the machine it's plugged into. You need to either hardcode it into your payload, or read it from a DIP switch combination. Quote
Mr-Protocol Posted January 13, 2011 Posted January 13, 2011 The Teensy cannot detect the OS running on the machine it's plugged into. You need to either hardcode it into your payload, or read it from a DIP switch combination. Yes. If I remember correctly the teensy does not have dip switches stock. You have to add them yourself. Quote
BITS1 Posted January 13, 2011 Author Posted January 13, 2011 Yes. If I remember correctly the teensy does not have dip switches stock. You have to add them yourself. Aww, that's too bad, I was really hoping that Teensy could do that without the user's help. Is it just the low level programming or how its made does not give it the ability to do that ? Sincerely, Bits1 Quote
Mr-Protocol Posted January 13, 2011 Posted January 13, 2011 The teensy is nothing more than a HID (Human Interface Device) aka Keyboard/mouse. You might be able to do something if you mod up the I/O ports and hook it up to RS232 or something. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.