Commit Graph

13115 Commits

Author SHA1 Message Date
Radomir Dopieralski 016efb5c68 Add GamePadShift to docs 2019-04-12 22:00:03 +02:00
Radomir Dopieralski 4dc286fa14 Reorganize the gamepad code 2019-04-12 20:43:29 +02:00
Radomir Dopieralski 049e80993d Sync gampad_singleton with the long lived copy 2019-04-12 20:43:29 +02:00
Radomir Dopieralski 947662415c Disable gamepad for feather_m0_express_crickit 2019-04-12 20:43:29 +02:00
Radomir Dopieralski 5915126030 Typos 2019-04-12 20:43:29 +02:00
Radomir Dopieralski bfe63e9528 Make the polish translation smaller 2019-04-12 20:43:29 +02:00
Radomir Dopieralski ae60968563 More refactoring 2019-04-12 20:43:29 +02:00
Radomir Dopieralski 7e89beeb31 Optimize the size of code for gamepad 2019-04-12 20:43:29 +02:00
Radomir Dopieralski 3469b1ec5d Add debouncing to GamePadShift 2019-04-12 20:43:29 +02:00
Radomir Dopieralski b485e45f4f Go back to simple bit-banging in GamePadShift, fix problems 2019-04-12 20:43:29 +02:00
Radomir Dopieralski a7925930fa Read one bit per system clock tick in GamePadShift 2019-04-12 20:43:29 +02:00
Radomir Dopieralski 6ff4e0ecb0 Add GamePadShift for handling shift-register-based buttons 2019-04-12 20:43:29 +02:00
Scott Shawcroft 29615dae06
Merge pull request #1787 from pewpew-game/custom-font
Allow overriding the font per board definition
2019-04-12 09:53:59 -07:00
Radomir Dopieralski 1eede2d1e3 Allow overriding the font per board definition
This way boards with smaller screens can use smaller fonts
2019-04-12 12:09:53 +02:00
Dan Halbert 121d532a0e
Merge pull request #1781 from tannewt/build_aliases
Add alias support for unique board revs
2019-04-11 15:50:38 -04:00
Scott Shawcroft 1eb1430d82
Add alias support for unique board revs
This way we can list different board styles and track their
downloads without a completely new binary.

Fixes #1673
2019-04-11 11:25:04 -07:00
Scott Shawcroft 959258b3ab
Merge pull request #1780 from pewpew-game/pybadge-spi-24mhz
Configure the TFT spi to 24MHz by default
2019-04-11 10:43:15 -07:00
Radomir Dopieralski 5603d0cd38 Configure the TFT spi to 24MHz by default
That is (slightly) out of spec for the display, but it works reliably.
2019-04-11 15:47:26 +02:00
Dan Halbert cf3f3e510c
Merge pull request #1774 from tannewt/pybadge_revd
Tweak pybadge and fix display bugs
2019-04-10 18:45:41 -04:00
Scott Shawcroft debff19126
Check for null local dictionaries 2019-04-10 14:48:27 -07:00
Scott Shawcroft 9f4f689879
Free up space in Itsy Bitsy M0 by limiting inline. 2019-04-10 14:09:14 -07:00
Scott Shawcroft a152ac1cef
Merge remote-tracking branch 'adafruit/master' into pybadge_revd 2019-04-10 10:58:45 -07:00
Dan Halbert f115ec2193
Merge pull request #1777 from ladyada/master
Rev D/E (beta) hardware!
2019-04-10 10:21:09 -04:00
ladyada 894c1e9590 Rev D/E (beta) hardware! 2019-04-10 08:37:20 -04:00
Dan Halbert 203d795bd6
Merge pull request #1772 from tannewt/fix_gc_never_free
Check that a never free pointer is on the heap.
2019-04-10 08:26:37 -04:00
Scott Shawcroft 44e32506ed
Don't make Pins for those not connected on Itsy M0 2019-04-10 00:06:59 -07:00
Dan Halbert de38ce798c
Merge pull request #1775 from dhalbert/fix-bast-pro-mini-build
Fix version skew for bast_pro_mini build
2019-04-09 23:46:37 -04:00
Dan Halbert c0c809ad4b Fix version skew for bast_pro_mini build 2019-04-09 22:52:53 -04:00
Scott Shawcroft ac2fd2fa80
Merge pull request #1773 from dhalbert/no-recursive-background-tasks
Don't let a background task call run_background_tasks()
2019-04-09 18:39:28 -07:00
Scott Shawcroft 34c8c669a3
Ignore vscode files 2019-04-09 18:32:52 -07:00
Scott Shawcroft 5028f87b09
Tweak pybadge and fix display bugs
* Update pybadge pins and flash for rev D
* TileGrid now validates the type of the pixel_shader.
* Display actually handles incoming subclass objects.
* MicroPython will inspect native parents to see if special
  accessors are used.
2019-04-09 18:32:52 -07:00
Dan Halbert d8763debf5
shrink sparkfun_lumidrive build 2019-04-09 21:23:28 -04:00
Dan Halbert fc9cb038c4
Merge pull request #1715 from ElectronicCats/master
Added Bast Pro Mini M0
2019-04-09 20:53:05 -04:00
Dan Halbert d633928a16 Don't let a background task call run_background_tasks() 2019-04-09 20:23:01 -04:00
Scott Shawcroft ee7a77db65
Check that a never free pointer is on the heap.
This fixes a crash on boards with built-in displays which statically
allocate the display bus. When the pointer is provided to never
free, it tries to allocate on the non-existant heap and crashes.
2019-04-09 15:12:28 -07:00
Dan Halbert 9026f13a25
Merge pull request #1756 from tannewt/fix_cpx_display
Fix crash when getting board.SPI outside the VM
2019-04-09 17:47:25 -04:00
Scott Shawcroft 129e725599
Merge branch 'master' into master 2019-04-09 14:40:36 -07:00
Scott Shawcroft 0e98eeb63b
Turn off touchio on pIRkey and add back usb midi.
USB MIDI was still being compiled in mostly anyway. There is no
place to touch on the board so touchio is useless.
2019-04-09 12:36:14 -07:00
Scott Shawcroft ef23ffe584
Turn off audiobusio on Hallowing to free rom
It is about 5kb and the pins aren't broken out for it anyway.
2019-04-09 12:01:00 -07:00
Scott Shawcroft 72992070c5
Fix boards with no shared busses. 2019-04-09 11:36:10 -07:00
Scott Shawcroft ac7822ba4c
Delete stale TODO 2019-04-08 17:37:30 -07:00
Scott Shawcroft de48e4b262
Merge remote-tracking branch 'adafruit/master' into fix_cpx_display 2019-04-08 17:15:08 -07:00
Scott Shawcroft 5015036c06
Merge pull request #1758 from pewpew-game/fourwire-frequency
Stop hard-coding SPI frequency in FourWire
2019-04-08 17:02:07 -07:00
Scott Shawcroft 0f003ac5b8
Reorganize board busses into shared-bindings and shared-module. 2019-04-08 16:58:50 -07:00
Scott Shawcroft 049b9ca094
Remove terse TODOs 2019-04-08 14:46:45 -07:00
Scott Shawcroft 672a102fdf
Merge pull request #1757 from pewpew-game/displayio-bus
Expose displayio.Display.bus
2019-04-08 14:17:10 -07:00
Radomir Dopieralski 8323721232 Stop hard-coding SPI frequency in FourWire
Instead remember and use the frequency, polarity and phase that was
set when the bus was first created.
2019-04-06 15:15:29 +02:00
Radomir Dopieralski 4b3cb7b6db Expose displayio.Display.bus
With the bus exposed, we can send custom commands to the display, to
leverage advanced features specific to the display, which are not
exposed by default.
2019-04-06 14:25:08 +02:00
Scott Shawcroft 7686f93ef4
Fix crash when getting board.SPI outside the VM
If one of the default pins was already in use it would crash.

The internal API has been refined to allow us to get the value
without causing an init of the singleton.

Fixes #1753
2019-04-05 19:06:37 -07:00
Dan Halbert 8b9e93329d
Merge pull request #1755 from tannewt/fix_tilegrid_bounds_check
Always check TileGrid's x, y
2019-04-05 17:51:04 -04:00