<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/shared-bindings/gamepad, branch 4.0.0-alpha</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=4.0.0-alpha</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=4.0.0-alpha'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2018-05-30T21:11:22+00:00</updated>
<entry>
<title>Add gamepad_singleton to root pointers</title>
<updated>2018-05-30T21:11:22+00:00</updated>
<author>
<name>Radomir Dopieralski</name>
<email>openstack@sheep.art.pl</email>
</author>
<published>2018-05-24T09:25:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b219ce6d377b6e00e1967c9b98966d4229f566ed'/>
<id>urn:sha1:b219ce6d377b6e00e1967c9b98966d4229f566ed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make the gamepad singleton long-lived</title>
<updated>2018-05-30T21:11:22+00:00</updated>
<author>
<name>Radomir Dopieralski</name>
<email>openstack@sheep.art.pl</email>
</author>
<published>2018-05-24T09:16:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c37b69e1a5316956ce966cce6841f3d960e581b0'/>
<id>urn:sha1:c37b69e1a5316956ce966cce6841f3d960e581b0</id>
<content type='text'>
So that it is not later moved.
</content>
</entry>
<entry>
<title>Remove volatile from the gamepad struct</title>
<updated>2018-05-23T19:49:20+00:00</updated>
<author>
<name>Radomir Dopieralski</name>
<email>openstack@sheep.art.pl</email>
</author>
<published>2018-05-23T19:49:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=42e36a883b4145e9f8b70022d6f13ceaab4fca2c'/>
<id>urn:sha1:42e36a883b4145e9f8b70022d6f13ceaab4fca2c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Raise an error if more than 8 buttons passed to gamepad</title>
<updated>2018-05-23T19:41:56+00:00</updated>
<author>
<name>Radomir Dopieralski</name>
<email>openstack@sheep.art.pl</email>
</author>
<published>2018-05-23T19:41:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f17a235b4069c9e35a998da4d406354dfc1a220c'/>
<id>urn:sha1:f17a235b4069c9e35a998da4d406354dfc1a220c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid uninitialized gamepad on exception</title>
<updated>2018-05-23T19:39:06+00:00</updated>
<author>
<name>Radomir Dopieralski</name>
<email>openstack@sheep.art.pl</email>
</author>
<published>2018-05-23T19:39:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=240678e71403f54ab31452a7138dfd8ddcfc7f0c'/>
<id>urn:sha1:240678e71403f54ab31452a7138dfd8ddcfc7f0c</id>
<content type='text'>
Raise exceptions before the gamepad_singleton is created.
Also, use mp_raise for creating the exceptions.
</content>
</entry>
<entry>
<title>Make gamepad.get_pressed work when gamepad was created from frozen code</title>
<updated>2018-05-23T10:44:22+00:00</updated>
<author>
<name>Radomir Dopieralski</name>
<email>openstack@sheep.art.pl</email>
</author>
<published>2018-05-23T10:44:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=edf2935ab166d3db765eec600ffccaedee79e5a5'/>
<id>urn:sha1:edf2935ab166d3db765eec600ffccaedee79e5a5</id>
<content type='text'>
For some reason, when the GamePad is created from frozen code, the
get_pressed method would always return 0. This fixes it, and makes it
work properly no matter how the object was created.
</content>
</entry>
<entry>
<title>Cache pullup state in gamepad</title>
<updated>2018-05-23T09:26:16+00:00</updated>
<author>
<name>Radomir Dopieralski</name>
<email>openstack@sheep.art.pl</email>
</author>
<published>2018-05-23T09:26:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=52d05bbc37d063a1fdc359b18b9b112665f92276'/>
<id>urn:sha1:52d05bbc37d063a1fdc359b18b9b112665f92276</id>
<content type='text'>
Don't check the pin's pull direction on every tick, instead cache it
at the beginning. Also avoid a "can't get pull of output pin" error
when one of the pins passed is in output mode.
</content>
</entry>
<entry>
<title>Add a type check to the gamepad module</title>
<updated>2018-03-31T18:41:16+00:00</updated>
<author>
<name>Radomir Dopieralski</name>
<email>openstack@sheep.art.pl</email>
</author>
<published>2018-03-31T18:41:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6ca4fd82eddcaaf75b0052d6a14a5938ffce8153'/>
<id>urn:sha1:6ca4fd82eddcaaf75b0052d6a14a5938ffce8153</id>
<content type='text'>
Make sure that all the arguments passed are indeed DigitalInOut.
This avoids crashes when the users pass something else.
</content>
</entry>
<entry>
<title>Fix example for gamepad</title>
<updated>2018-01-11T16:06:53+00:00</updated>
<author>
<name>Radomir Dopieralski</name>
<email>openstack@sheep.art.pl</email>
</author>
<published>2018-01-10T21:50:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0ff128ec0309f910bf605cde17abb2b89f409a6f'/>
<id>urn:sha1:0ff128ec0309f910bf605cde17abb2b89f409a6f</id>
<content type='text'>
The example code for the gamepad module would skip detected
button presses in the code that waits for a button to be released,
because it would run it even when no button is pressed.

Also updated the example pin names to not use RX and TX.
</content>
</entry>
<entry>
<title>Add a `gamepad` module for handling buttons in the background. (#295)</title>
<updated>2017-10-03T20:35:57+00:00</updated>
<author>
<name>Radomir Dopieralski</name>
<email>deshipu@users.noreply.github.com</email>
</author>
<published>2017-10-03T20:35:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f4981677b0b73d286f3af098a4111f8ba6d286bc'/>
<id>urn:sha1:f4981677b0b73d286f3af098a4111f8ba6d286bc</id>
<content type='text'>
The `GamePad` singleton monitors buttons in the background to make sure a button press is never missed and debouncing happens consistently.</content>
</entry>
</feed>
