Teensy 2++ Pin layout

Status
Not open for further replies.

ZUBXI

New member
Can anyone tell me on the Teensy 2++ what is the following pins for. Eg. Digital, analog. PWM, UART,I2C,SPI and so on?
Pins E4, E5
Pins PA0 to PA7
Pin ALE

Please assist
Regards
Pieter Kriel
 
Thanks Headroom
I've looked at it, but still don't say what it is....Digital, analog. PWM, UART,I2C,SPI
Can i assume it is Digital I/O pins
 
There are 2 ways to program these boards. I'm going to assume you'd use Arduino, which is by far the simpler way for beginners.

Digital pins are used with digitalRead, digitalWrite and pinMode. Analog pins are used by analogRead.

PWM pins can be used by analogWrite, which causes the pin to pulse rapidly, where the average simulates an analog voltage. That's useful for controlling motors, lights and other stuff where the average power is what matters.

This stuff is all part of the core Arduino functionality, which is documented here:

http://arduino.cc/en/Reference/HomePage

Many pins have still more functions. UART (TX1, RX1) are serial ports, used with "Serial". I2C and SPI are other communication ports, used with the Wire and SPI libraries. Many common chips, like motion sensors and flash memory, have these types of communication.

For example, if you purchase this WiFi communication module, it connects to the SPI pins.

http://www.pjrc.com/store/adafruit_cc3000.html

Many others on the market use the SDA and SCL signals.

If you're not using hardware with that type of communication, you can use leave those pins unused. It's much like having a Firewire or Ethernet port on a regular computer, which just comes with the machine even if you never have a need to use it. But if you do have something else that needs I2C or SPI communication, then you'd use those ports.
 
Thanks for the reply Mr. Stoffregen
I am using Teensyduino with flight sim controls and TeensyControls X-Plane Plugin 1.0 (32 & 64 bit, X-Plane 10.20 or greater)
 
And yes i am thinking of using a I2C port extender to extend the I/O pins to another total 128 pins.
The board i want to use is breakout board designed by Skateworx , http://www.skateworx.co.za
But so far don't have a clue where to start.
Please look at there product and comment .
Regards
Peter
 
The skateworkx board looks like an interesting alternative to the Adafruit mcp23017. It has all of the data pins on one side, which probably simplifies wiring when you are doing a lot of lights. If you are doing multiple lights, you should be able to stack them in order. The adafruit board has 8 data pins on one side and 8 data pins on the other. The adafruit library has examples in it, that you might want to start with (note the wiring is different): https://github.com/adafruit/Adafruit-MCP23017-Arduino-Library
 
Status
Not open for further replies.
Back
Top