<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/ports, branch main</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2021-04-02T18:34:37+00:00</updated>
<entry>
<title>Changed error message to display the generic term 'system firmware' instead of the Nordic specific term 'soft device'</title>
<updated>2021-04-02T18:34:37+00:00</updated>
<author>
<name>Jonny Bergdahl</name>
<email>jonny@bergdahl.it</email>
</author>
<published>2021-04-02T18:34:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1afd204828b6981e628b2665758708b679773c9a'/>
<id>urn:sha1:1afd204828b6981e628b2665758708b679773c9a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #4530 from jepler/mimxrt1011-pwmio</title>
<updated>2021-04-02T14:29:41+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jeff@adafruit.com</email>
</author>
<published>2021-04-02T14:29:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3451c25a75fb0cc0cfc613ea02bd39485047b477'/>
<id>urn:sha1:3451c25a75fb0cc0cfc613ea02bd39485047b477</id>
<content type='text'>
mimxrt1011: pwmio: Enable basic PWMOut functionality</content>
</entry>
<entry>
<title>Merge pull request #4534 from UnexpectedCircuitPython/main</title>
<updated>2021-04-02T01:05:46+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@adafruit.com</email>
</author>
<published>2021-04-02T01:05:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=da16e4dce197027012501ef9823bc8369e0774f8'/>
<id>urn:sha1:da16e4dce197027012501ef9823bc8369e0774f8</id>
<content type='text'>
Changed some pins for TinyS2</content>
</entry>
<entry>
<title>Two small PacketBuffer fixes</title>
<updated>2021-04-01T21:16:35+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2021-04-01T21:13:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=58835e5a5b2e5f20357ad49d77d93a1aa9cf4364'/>
<id>urn:sha1:58835e5a5b2e5f20357ad49d77d93a1aa9cf4364</id>
<content type='text'>
1. Allow for ctrl-c during a write.
2. Handle disconnects when acting as a client.
</content>
</entry>
<entry>
<title>Changed some pins for TinyS2</title>
<updated>2021-04-01T21:08:02+00:00</updated>
<author>
<name>Seon Rozenblum</name>
<email>seon@unexpectedmaker.com</email>
</author>
<published>2021-04-01T21:08:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a9b4e04643ec6eeec32a508286871425ce18aca1'/>
<id>urn:sha1:a9b4e04643ec6eeec32a508286871425ce18aca1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add pinmux info for 1021 and 1062 family MCUs</title>
<updated>2021-04-01T20:59:57+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2021-04-01T20:59:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3f3cb79b7dc2af243109cbeeb418f1edf61d51f2'/>
<id>urn:sha1:3f3cb79b7dc2af243109cbeeb418f1edf61d51f2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mimxrt1011: pwmout: Add prescaler, fix duty_cycle=65535</title>
<updated>2021-04-01T18:04:06+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2021-04-01T18:04:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=89fc0298ce6d7ee64246ce263223ce26883125a4'/>
<id>urn:sha1:89fc0298ce6d7ee64246ce263223ce26883125a4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mimxrt1011: pwmio: Enable basic PWMOut functionality</title>
<updated>2021-04-01T15:06:59+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2021-04-01T14:37:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=489163b74edf9d6f40b3d9e6ee0154d2f1ddce79'/>
<id>urn:sha1:489163b74edf9d6f40b3d9e6ee0154d2f1ddce79</id>
<content type='text'>
After this change, the following program works for me on the MIMXRT1010-EVK:
```python
import pwmio
import board

p = pwmio.PWMOut(board.D13, frequency=1_000_000, variable_frequency=True)
p.duty_cycle = 32868

while True:
    pass
```

Querying and varying the duty_cycle and frequency work as well.

The lowest frequency obtainable is about 2kHz; there is an additional
divider which would allow lower PWM frequencies (I think 1kHz is important
for servos?)

Something odd happens with very low duty cycles, such as
```python
&gt;&gt;&gt; p.frequency = 2000
&gt;&gt;&gt; p.duty_cycle = 2
```
instead of a symmetrical waveform, it's asymmetrical.  With `duty_cycle=4`,
the effect disappears.  The reason for this is probably hidden in the
datasheet, but could affect servos or other things that count pulse
widths.
</content>
</entry>
<entry>
<title>Fix SD_DET pin assignment of seeduino_wio_terminal.</title>
<updated>2021-04-01T08:09:56+00:00</updated>
<author>
<name>Tsutomu IKEGAMI</name>
<email>t-ikegami@aist.go.jp</email>
</author>
<published>2021-04-01T08:09:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=be50732515f8daa6e9ef60c25b080fb803151b4a'/>
<id>urn:sha1:be50732515f8daa6e9ef60c25b080fb803151b4a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #4522 from tannewt/ble_fixup</title>
<updated>2021-04-01T01:24:19+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@adafruit.com</email>
</author>
<published>2021-04-01T01:24:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d0ba75e6dc7e88bf9242ec433a38aba8c085482e'/>
<id>urn:sha1:d0ba75e6dc7e88bf9242ec433a38aba8c085482e</id>
<content type='text'>
Fix central pairing and crash on clear</content>
</entry>
</feed>
