<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/boards/make-pins.py, branch esp-extra-scripts</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=esp-extra-scripts</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=esp-extra-scripts'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-12-12T15:02:02+00:00</updated>
<entry>
<title>stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx.</title>
<updated>2015-12-12T15:02:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-12-12T15:02:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f7c4f9a64048bcbeaf36be8590b352bbef72aa08'/>
<id>urn:sha1:f7c4f9a64048bcbeaf36be8590b352bbef72aa08</id>
<content type='text'>
Previously, SPI was configured by a board defining MICROPY_HW_ENABLE_SPIx
to 0 or 1.  Now, the board should define MICROPY_HW_SPIx_SCK, MISO, MOSI
and NSS.  This makes it the same as how I2C is configured.
</content>
</entry>
<entry>
<title>stmhal: Add support for USART1 and conditional pins in make-pins.py.</title>
<updated>2015-08-02T23:23:47+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-08-02T23:23:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=751485fe6b7eeb93f171c2f2b0417803f6e78c05'/>
<id>urn:sha1:751485fe6b7eeb93f171c2f2b0417803f6e78c05</id>
<content type='text'>
Thanks to Dave Hylands for the patch.
</content>
</entry>
<entry>
<title>stmhal: Fix make-pins.py to allow Port K.</title>
<updated>2015-08-02T23:18:40+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-08-02T23:18:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c0e39864c6f2876375dc57009fd3341e51e62295'/>
<id>urn:sha1:c0e39864c6f2876375dc57009fd3341e51e62295</id>
<content type='text'>
Thanks to Dave Hylands for the patch.
</content>
</entry>
<entry>
<title>stmhal: Add I2S support to make-pins.py</title>
<updated>2015-07-07T09:15:37+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-07-02T22:59:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=11115e4d23ba786df7ad0293b86dfdfebb8e6df3'/>
<id>urn:sha1:11115e4d23ba786df7ad0293b86dfdfebb8e6df3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: For pins, define macros mapping board names to cpu names.</title>
<updated>2015-04-18T20:40:58+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-02-22T22:32:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=50ea86fe8b95ec8ce091061c34f449773ebe216a'/>
<id>urn:sha1:50ea86fe8b95ec8ce091061c34f449773ebe216a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added python script to map AF to a pin name</title>
<updated>2014-08-24T17:21:08+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2014-08-11T06:18:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3d945559d4c25b7ce30c5e6b0f443bf32ffe957d'/>
<id>urn:sha1:3d945559d4c25b7ce30c5e6b0f443bf32ffe957d</id>
<content type='text'>
Added some functions to Pin class to query mode, pull, and af
</content>
</entry>
<entry>
<title>stmhal/teensy: Use _ instead of - in source file names.</title>
<updated>2014-08-08T21:34:06+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-08T21:34:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=284efa89ae25f75686754f0b6b8fd06526c05971'/>
<id>urn:sha1:284efa89ae25f75686754f0b6b8fd06526c05971</id>
<content type='text'>
Trying to move towards consistency, let's use _ exclusively in names of
source files (eg .c, .h, .csv).
</content>
</entry>
<entry>
<title>Add support for selecting pin alternate functions from python.</title>
<updated>2014-08-08T06:15:41+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2014-07-22T14:57:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6f418fc1b068c1a41113bb2b019a5803765e1deb'/>
<id>urn:sha1:6f418fc1b068c1a41113bb2b019a5803765e1deb</id>
<content type='text'>
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())))
```
</content>
</entry>
<entry>
<title>Fix make-pins.py to support having multiple names for a pin.</title>
<updated>2014-04-08T22:45:47+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2014-04-08T22:42:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3bbceeaaf78befd221ec52c033309adc2db15af0'/>
<id>urn:sha1:3bbceeaaf78befd221ec52c033309adc2db15af0</id>
<content type='text'>
SW and X17 now both map to PB3
</content>
</entry>
<entry>
<title>stmhal - fixed up adc stuff</title>
<updated>2014-03-24T18:16:35+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2014-03-24T17:49:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1403298a653fdb1ed3604bab71ce17200e5017f7'/>
<id>urn:sha1:1403298a653fdb1ed3604bab71ce17200e5017f7</id>
<content type='text'>
Added support for the ADC channels and mappings to make_pins.py

I'm not sure if the hal properly deals with the channel 16/18 differences
between the 40x and 42x. It seems to deal with it partially. This particular
aspect will need testing on a 42x or 43x.
</content>
</entry>
</feed>
