<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/esp8266/machine_pin.c, branch 2.3.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.3.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.3.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-08-13T12:52:33+00:00</updated>
<entry>
<title>all: Raise exceptions via mp_raise_XXX</title>
<updated>2017-08-13T12:52:33+00:00</updated>
<author>
<name>Javier Candeira</name>
<email>javier@candeira.com</email>
</author>
<published>2017-08-09T04:40:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=35a1fea90b2cae9d5cc8e9eab62ba4c67e8786db'/>
<id>urn:sha1:35a1fea90b2cae9d5cc8e9eab62ba4c67e8786db</id>
<content type='text'>
  - Changed: ValueError, TypeError, NotImplementedError
  - OSError invocations unchanged, because the corresponding utility
    function takes ints, not strings like the long form invocation.
  - OverflowError, IndexError and RuntimeError etc. not changed for now
    until we decide whether to add new utility functions.
</content>
</entry>
<entry>
<title>all: Use the name MicroPython consistently in comments</title>
<updated>2017-07-31T08:35:40+00:00</updated>
<author>
<name>Alexander Steffen</name>
<email>devel.20.webmeister@spamgourmet.com</email>
</author>
<published>2017-06-30T07:22:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=55f33240f3d7051d4213629e92437a36f1fac50e'/>
<id>urn:sha1:55f33240f3d7051d4213629e92437a36f1fac50e</id>
<content type='text'>
There were several different spellings of MicroPython present in comments,
when there should be only one.
</content>
</entry>
<entry>
<title>esp8266: Convert to mp_rom_map_elem_t.</title>
<updated>2017-07-30T15:13:01+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-07-30T15:13:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e6bb25317b7768ae3423f520e69dbb1f7109605c'/>
<id>urn:sha1:e6bb25317b7768ae3423f520e69dbb1f7109605c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>esp8266: Move mp_hal_pin_open_drain from esp_mphal.c to machine_pin.c.</title>
<updated>2017-06-22T06:39:09+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-06-22T06:39:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=46b849ab49b88ef1516b9c3b07859f54ed347676'/>
<id>urn:sha1:46b849ab49b88ef1516b9c3b07859f54ed347676</id>
<content type='text'>
It belongs with the other pin config functions in machine_pin.c.  Also,
esp_mphal.c is put in iRAM so this change saves about 300 bytes of iRAM
(and mp_hal_pin_open_drain is not a time critical function so doesn't
need to be in iRAM).
</content>
</entry>
<entry>
<title>esp8266, stmhal, zephyr: Rename machine.Pin high/low methods to on/off.</title>
<updated>2017-05-21T14:44:58+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-16T08:14:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bcf31a39087bd7727e15105363063980120fd528'/>
<id>urn:sha1:bcf31a39087bd7727e15105363063980120fd528</id>
<content type='text'>
For consistent Pin/Signal class hierarchy. With it, Signal is a proper
(while still ducktyped) subclass of a Pin, and any (direct) usage of Pin
can be replace with Signal.

As stmhal's class is reused both as machine.Pin and legacy pyb.Pin,
high/low methods actually retained there.
</content>
</entry>
<entry>
<title>extmod/machine_signal: Support all Pin's arguments to the constructor.</title>
<updated>2017-04-10T21:12:20+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-10T21:12:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=605ff91efdeb3cd7e4948c0398c839a9ae06044a'/>
<id>urn:sha1:605ff91efdeb3cd7e4948c0398c839a9ae06044a</id>
<content type='text'>
This implements the orginal idea is that Signal is a subclass of Pin, and
thus can accept all the same argument as Pin, and additionally, "inverted"
param. On the practical side, it allows to avoid many enclosed parenses for
a typical declararion, e.g. for Zephyr:

Signal(Pin(("GPIO_0", 1))).

Of course, passing a Pin to Signal constructor is still supported and is the
most generic form (e.g. Unix port will only support such form, as it doesn't
have "builtin" Pins), what's introduces here is just practical readability
optimization.

"value" kwarg is treated as applying to a Signal (i.e. accounts for possible
inversion).
</content>
</entry>
<entry>
<title>esp8266/machine_pin: Fix pin.irq() to work when all args are keywords.</title>
<updated>2017-03-21T04:28:31+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-21T04:28:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5d05ff140626c369452f32de841aa1789e490835'/>
<id>urn:sha1:5d05ff140626c369452f32de841aa1789e490835</id>
<content type='text'>
</content>
</entry>
<entry>
<title>esp8266/machine_pin: Fix memset size for zeroing of pin_irq_is_hard.</title>
<updated>2017-03-21T04:13:15+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-21T04:13:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b16c35486fa45b7828248075a447690701b1399d'/>
<id>urn:sha1:b16c35486fa45b7828248075a447690701b1399d</id>
<content type='text'>
Thanks to @robert-hh.
</content>
</entry>
<entry>
<title>esp8266/machine_pin: Make pin.irq arguments positional.</title>
<updated>2017-03-20T04:20:26+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-16T06:15:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9ee464185064b287bc1b0ff42e1b81214d808e7a'/>
<id>urn:sha1:9ee464185064b287bc1b0ff42e1b81214d808e7a</id>
<content type='text'>
All arguments to pin.irq are converted from keyword-only to positional, and
can still be specified by keyword so it's a backwards compatible change.

The default value for the "trigger" arg is changed from 0 (no trigger)
to rising+falling edge.
</content>
</entry>
<entry>
<title>esp8266/machine_pin: Add "hard" parameter to pin.irq, soft by default.</title>
<updated>2017-03-20T04:20:26+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-02-15T06:45:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2507c83b0ebb9f3876b076eeb4bca992832e2aa2'/>
<id>urn:sha1:2507c83b0ebb9f3876b076eeb4bca992832e2aa2</id>
<content type='text'>
</content>
</entry>
</feed>
