<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmano-mpy/drivers/onewire, branch master</title>
<subtitle>MicroPython source and hardware configuration for OpenMano</subtitle>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/'/>
<entry>
<title>drivers/onewire: Fix undefined variable errors.</title>
<updated>2020-03-24T14:09:14+00:00</updated>
<author>
<name>Andreas Motl</name>
</author>
<published>2020-03-23T03:07:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=fbfea3b44007a2186468a57b0a27062d1060085d'/>
<id>fbfea3b44007a2186468a57b0a27062d1060085d</id>
<content type='text'>
On CPython, and with pylint, the variables MATCH_ROM and SEARCH_ROM are
undefined.  This code works in MicroPython because these variables are
constants and the MicroPython parser/compiler optimises them out.  But it
is not valid Python because they are technically undefined within the scope
they are used.

This commit makes the code valid Python code.  The const part is removed
completely because these constants are part of the public API and so cannot
be moved to the global scope (where they could still use the MicroPython
const optimisation).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On CPython, and with pylint, the variables MATCH_ROM and SEARCH_ROM are
undefined.  This code works in MicroPython because these variables are
constants and the MicroPython parser/compiler optimises them out.  But it
is not valid Python because they are technically undefined within the scope
they are used.

This commit makes the code valid Python code.  The const part is removed
completely because these constants are part of the public API and so cannot
be moved to the global scope (where they could still use the MicroPython
const optimisation).
</pre>
</div>
</content>
</entry>
<entry>
<title>all: Reformat C and Python source code with tools/codeformat.py.</title>
<updated>2020-02-27T23:33:03+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-02-27T04:36:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=69661f3343bedf86e514337cff63d96cc42f8859'/>
<id>69661f3343bedf86e514337cff63d96cc42f8859</id>
<content type='text'>
This is run with uncrustify 0.70.1, and black 19.10b0.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is run with uncrustify 0.70.1, and black 19.10b0.
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/onewire/ds18x20.py: Add support for DS1822 sensor.</title>
<updated>2019-10-16T03:28:13+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2019-10-16T03:27:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=595438785879552912a1a6832a4f2715f4e82272'/>
<id>595438785879552912a1a6832a4f2715f4e82272</id>
<content type='text'>
DS1822P sensors behave just like the DS18B20 except for the following:
- it has a different family code: 0x22
- it has only the GND and DQ pins connected, it uses parasitic power from
  the data line

Contributed by @nebelgrau77.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
DS1822P sensors behave just like the DS18B20 except for the following:
- it has a different family code: 0x22
- it has only the GND and DQ pins connected, it uses parasitic power from
  the data line

Contributed by @nebelgrau77.
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/onewire: Enable pull-up when init'ing the 1-wire pin.</title>
<updated>2017-06-26T07:48:05+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2017-06-26T07:48:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=683df1c8d5ab37dbb0d2909bcd94c7e4eea3232f'/>
<id>683df1c8d5ab37dbb0d2909bcd94c7e4eea3232f</id>
<content type='text'>
A previous version of the 1-wire driver (which was recently replaced by the
current one) had this behaviour and it allows to create a 1-wire bus
without any external pull-up resistors.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A previous version of the 1-wire driver (which was recently replaced by the
current one) had this behaviour and it allows to create a 1-wire bus
without any external pull-up resistors.
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/onewire: Move onewire.py, ds18x20.py from esp8266 to drivers.</title>
<updated>2017-06-22T06:28:07+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2017-06-22T06:28:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=a065d786753b83ab92873b90d8d61d9fe5639fdd'/>
<id>a065d786753b83ab92873b90d8d61d9fe5639fdd</id>
<content type='text'>
These drivers can now be used by any port (so long as that port has the
_onewire driver from extmod/modonewire.c).

These drivers replace the existing 1-wire and DS18X20 drivers in the
drivers/onewire directory.  The existing ones were pyboard-specific and
not very efficient nor minimal (although the 1-wire driver was written in
pure Python it only worked at large enough CPU frequency).

This commit brings backwards incompatible API changes to the existing
1-wire drivers.  User code should be converted to use the new drivers, or
check out the old version of the code and keep a local copy (it should
continue to work unchanged).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These drivers can now be used by any port (so long as that port has the
_onewire driver from extmod/modonewire.c).

These drivers replace the existing 1-wire and DS18X20 drivers in the
drivers/onewire directory.  The existing ones were pyboard-specific and
not very efficient nor minimal (although the 1-wire driver was written in
pure Python it only worked at large enough CPU frequency).

This commit brings backwards incompatible API changes to the existing
1-wire drivers.  User code should be converted to use the new drivers, or
check out the old version of the code and keep a local copy (it should
continue to work unchanged).
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: Replace deprecated Pin.high()/low() methods with .__call__(1/0).</title>
<updated>2017-05-21T14:44:58+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2017-04-23T08:35:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=1c9ee497562ab49c00d190ff91b6689979f922f4'/>
<id>1c9ee497562ab49c00d190ff91b6689979f922f4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/onewire/ds18x20: Fix negative temperature calc for DS18B20.</title>
<updated>2017-01-08T08:26:22+00:00</updated>
<author>
<name>syndycat</name>
</author>
<published>2017-01-07T11:36:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=b2611d6be305c94359f67df875786858e05c3eb0'/>
<id>b2611d6be305c94359f67df875786858e05c3eb0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/onewire: Enable pull up on data pin.</title>
<updated>2017-01-03T06:19:22+00:00</updated>
<author>
<name>Dave Hylands</name>
</author>
<published>2017-01-02T21:02:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=3c84197f17d27a991f50cb6e5ed268edbc796991'/>
<id>3c84197f17d27a991f50cb6e5ed268edbc796991</id>
<content type='text'>
The driver seems to be be enabling the pullup resistor in most places, but
not this one. Making this one little change allows onewire devices to be
used with no external pullup resistor.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The driver seems to be be enabling the pullup resistor in most places, but
not this one. Making this one little change allows onewire devices to be
used with no external pullup resistor.
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/onewire: Fix ds18x20.read_temp so it works when no rom given.</title>
<updated>2015-07-30T22:10:39+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2015-07-30T22:10:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=a95b06fc6b8adefa91303039cff0a35d3ae45d5a'/>
<id>a95b06fc6b8adefa91303039cff0a35d3ae45d5a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: Add onewire driver and ds18x20 temperature sensor driver.</title>
<updated>2015-03-03T01:29:52+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2015-03-03T01:29:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=9be0d599cd46fb01838cf14207c3d9a1195ceb35'/>
<id>9be0d599cd46fb01838cf14207c3d9a1195ceb35</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
