Dave Hylands 6f418fc1b0 Add support for selecting pin alternate functions from python.
Converts generted pins to use qstrs instead of string pointers.

This patch also adds the following functions:
pyb.Pin.names()
pyb.Pin.af_list()
pyb.Pin.gpio()

dir(pyb.Pin.board) and dir(pyb.Pin.cpu) also produce useful results.

pyb.Pin now takes kw args.

pyb.Pin.__str__ now prints more useful information about the pin
configuration.

I found the following functions in my boot.py to be useful:
```python
def pins():
    for pin_name in dir(pyb.Pin.board):
        pin = pyb.Pin(pin_name)
        print('{:10s} {:s}'.format(pin_name, str(pin)))

def af():
    for pin_name in dir(pyb.Pin.board):
        pin = pyb.Pin(pin_name)
        print('{:10s} {:s}'.format(pin_name, str(pin.af_list())))
```
2014-08-07 23:15:41 -07:00
..
2014-06-15 22:48:05 -07:00
2014-07-14 22:19:27 -07:00
2014-06-15 22:48:05 -07:00
2014-07-14 22:19:27 -07:00
2014-06-15 22:48:05 -07:00
2014-06-15 22:48:05 -07:00
2014-07-14 22:19:27 -07:00
2014-06-15 22:48:05 -07:00
2014-06-15 22:48:05 -07:00
2014-06-15 22:48:05 -07:00
2014-03-31 15:18:22 +01:00
2014-06-15 22:48:05 -07:00
2014-06-15 22:48:05 -07:00
2014-07-14 22:19:27 -07:00

Build Instructions for Teensy 3.1

This assumes that you have TeensyDuino installed and set the ARDUINO environment variable pointing to the where Arduino with TeensyDuino is installed.

cd teensy
ARDUINO=~/arduino-1.0.5 make

To upload micropython to the Teensy 3.1.

Press the Program button on the Teensy 3.1

make upload

Currently, the python prompt is through the USB serial interface.