Dan Halbert
d9ca4c9a60
fix build failures
2019-12-10 22:39:44 -05:00
Dan Halbert
c6221c5956
Remove no-longer-used nrf and atmel-samd .ld files
2019-12-10 21:22:17 -05:00
Dan Halbert
68ae47907c
merge from upstream
2019-12-10 21:04:46 -05:00
Dan Halbert
013c840862
working on all ports
2019-12-10 20:27:30 -05:00
Jeff Epler
a08d9e6d8e
audiocore: Add MP3File using Adafruit_MP3 library
2019-12-10 14:03:06 -06:00
Jeff Epler
1905d0746d
samd: neopixel: Fix neopixels after #2297
...
This adapts the "inline assembler" code from the UF2 bootloader, which
in turn is said to be adapted from the arduino neopixel library.
This requires the cache remain ON when using M0, and be turned OFF on M4
(determined by trial and error)
Testing performed on a Metro M4:
* measured timings using o'scope and found all values within
datasheet tolerance.
* Drove a string of 96 neopixels without visible glitches
* on-board neopixel worked
Testing performed on a Circuit Playground Express (M0):
* Color wheel code works on built-in neopixels
* Color wheel code works on 96 neopixel strip
As a bonus, this may have freed up a bit of flash on M0 targets. (2988 ->
3068 bytes free on Trinket M0)
Closes : #2297
2019-12-07 19:19:45 -06:00
Dan Halbert
d628d2a261
atmel-samd working
2019-12-06 15:18:20 -05:00
Dan Halbert
40434d6919
wip
2019-12-05 22:45:53 -05:00
Scott Shawcroft
fce81e6868
Merge pull request #2297 from jepler/tick-refactor
...
Call background tasks only once per ms
2019-12-02 16:45:51 -08:00
Jeff Epler
002f5c0f1c
samd: trinket_m0: make board fit again
2019-12-02 08:25:48 -06:00
Jeff Epler
899202aca7
Merge branch 'master' into gcc9
2019-12-02 07:27:03 -06:00
Jeff Epler
95d9c49e43
Merge remote-tracking branch 'origin/master' into tick-refactor
2019-11-29 11:27:09 -06:00
Jeff Epler
d843156a5e
samd: Consolidate small build optimization flags
...
.. inline-unit-growth was the same across all boards, and the highest
max-inline-insns-auto parameter was shared across 2 of 5 boards, so it's
worth a little work to follow the DRY principle
2019-11-29 10:51:16 -06:00
Dan Halbert
dd6dfeb30a
Squeeze pyruler zh_Latn_pinyin
2019-11-27 14:47:35 -05:00
Dan Halbert
b32a9192df
make UART.write be blocking on SAMD; add timeout property
2019-11-27 13:05:29 -05:00
Dan Halbert
e560b419f8
Merge pull request #2325 from sarfata/sarfata/add-shirtty-master
...
Add shIRtty board
2019-11-26 15:23:56 -05:00
Dan Halbert
97d90c6039
Merge pull request #2329 from theacodes/set-winterbloom-sol-usb-name
...
Set USB_INTERFACE_NAME for winterbloom_sol
2019-11-26 15:17:14 -05:00
Thea Flowers
e77046d49b
Set USB_INTERFACE_NAME for winterbloom_sol
2019-11-26 10:59:12 -08:00
Thomas Sarlandie
2647ea0754
fix: disable touchio to save some space
2019-11-26 19:26:18 +01:00
Scott Shawcroft
58ad38a88e
Remove DotStar from pIRkey M0 for now to free up space
...
Once we use PixelBuf, the library will be much smaller.
2019-11-26 09:31:44 -08:00
Jeff Epler
82f55dc046
atmel-samd: reduce inlining on constrained boards again
...
pewpew10, pirkey_m0, and uchip all fit now. However, pirkey_m0
now has just 76 bytes flash available.
2019-11-26 08:50:55 -06:00
Jeff Epler
3ed6de7baf
atmel-samd: reduce inlining on pyruler again
...
By tweaking the optimizer flags further, this build also fits
2019-11-26 08:50:55 -06:00
Jeff Epler
2e4a6b94e7
atmel-samd: get most constrained m0 builds to work again
...
By tweaking the optimizer flags, we can get back a few hundred bytes
and allow these builds to work with the gcc9 compiler.
2019-11-26 08:50:45 -06:00
Thomas Sarlandie
11dc572bce
feature: our own PID - thanks @ladyada
2019-11-25 21:56:42 +01:00
Thomas Sarlandie
fc71ed9789
add shirtty board - hackaday supercon 2019 addon
2019-11-25 17:44:41 +01:00
Dan Halbert
1ccb7b4c5e
cosmetic commit, mostly to re-run
2019-11-22 16:30:10 -05:00
Dan Halbert
13375d16f1
change mpconfigport.mk files so they can be overriden by mpconfigboard.mk
2019-11-22 15:44:51 -05:00
Jeff Epler
77b78d7fb9
Merge remote-tracking branch 'origin/master' into tick-refactor
2019-11-22 14:28:51 -06:00
Dan Halbert
e18d3e0f76
Merge branch 'master' into m4-network-ps2io
2019-11-22 15:02:52 -05:00
Dan Halbert
1a62a9cb17
remove network from kicksat_sprite
2019-11-22 14:02:44 -05:00
Dan Halbert
2e9aa38700
turn off network in pewpew_m4
2019-11-22 13:49:33 -05:00
Dan Halbert
1d411d2874
Merge remote-tracking branch 'adafruit/master' into testing-fixes
2019-11-22 11:55:34 -05:00
Dan Halbert
228a619af5
enable network, wiznet5k, and ps2io by default on M4
2019-11-22 10:59:27 -05:00
wallarug
fce7b89087
removed Robo HAT MM1 M0 board.
2019-11-20 21:34:24 +11:00
Jeff Epler
40a47d41df
samd: background: Allow monitoring time taken in background task
...
If you define MONITOR_BACKGROUND_TASK, then a physical output pin
(Metro M4 Express's "SCL" pin by default) will be set HIGH while in
the background task and LOW at other times
2019-11-18 11:01:24 -06:00
Jeff Epler
7f744a2369
Supervisor: move most of systick to the supervisor
...
This code is shared by most parts, except where not all the #ifdefs
inside the tick function were present in all ports. This mostly would
have broken gamepad tick support on non-samd ports.
The "ms32" and "ms64" variants of the tick functions are introduced
because there is no 64-bit atomic read. Disabling interrupts avoids
a low probability bug where milliseconds could be off by ~49.5 days
once every ~49.5 days (2^32 ms).
Avoiding disabling interrupts when only the low 32 bits are needed is a minor
optimization.
Testing performed: on metro m4 express, USB still works and
time.monotonic_ns() still counts up
2019-11-18 11:01:23 -06:00
Cedar Grove Maker Studios
e7df288a34
add USB interface description
...
... to "StringCarM0Ex"
2019-11-16 16:40:40 -08:00
Hierophect
81223c76bd
revert error
2019-11-15 13:04:25 -05:00
Hierophect
2c6781f74d
move neopixel_in_use flag to shared-bindings
2019-11-15 12:59:52 -05:00
Hierophect
de5691acf5
Add never_reset and reset to pin common hal, adjust files
2019-11-15 12:47:00 -05:00
Thea Flowers
c7195c4bc5
Allow boards to enable the micropython.native
decorator
...
Adds the `CIRCUITPY_ENABLE_MPY_NATIVE` for `mpconfigboard.mk` that enables
the `micropython.native` decorator.
2019-11-05 14:27:53 -08:00
Thea Flowers
73989dbcaf
Add board configuration for Winterbloom Sol
2019-11-04 23:11:42 -08:00
Scott Shawcroft
cd3fcc87ab
Merge pull request #2252 from dhalbert/cpb-two-i2c
...
nrf: allocate two I2C on CPB
2019-11-03 13:15:36 -08:00
Dan Halbert
85a648224f
Check for no pullups on I2C on nrf; give arduino nano 33 ble two I2C devices
2019-11-02 22:47:03 -04:00
brentru
2f04c5891f
flip it around
2019-10-31 14:11:50 -04:00
brentru
ab3da3071c
flip MADCTL BGR bit to reflect RGB colors
2019-10-31 10:11:47 -04:00
ladyada
d2b613134d
we should use native rotation, and tweak madctl (not done yet)
2019-10-29 22:53:44 -04:00
ladyada
1e869d1334
switch to 8-bit mode - tested on hardware!
2019-10-29 21:14:45 -04:00
Dan Halbert
1505da784f
wip
2019-10-28 18:15:02 -04:00
Dan Halbert
56ac41fabf
Merge pull request #2240 from theacodes/fix-2086
...
Track unadjusted PWM duty cycle to avoid accumulating conversion errors
2019-10-28 14:50:01 -04:00