mrmcwethy
bb008cdbc9
First attempt to move py/modmath.c to shared-bindings/math
2017-10-21 10:34:25 -07:00
Scott Shawcroft
536bcb42c9
atmel-samd: Re-enable pin reset. Fixes #352 ( #353 )
2017-10-20 07:49:33 -04:00
Scott Shawcroft
a800a25e88
atmel-samd: Switch Metro M4 Express to SAMD51J19. ( #351 )
2017-10-19 22:39:16 -04:00
Josh Gadeken
3ba5ba6e66
shared-bindings/storage/__init__.c: Change remount() readonly to kw arg ( #286 ).
...
The readonly arg to storage.remount() is now a keyword arg that
defaults to False. To maintain backwards compatibility, readonly
can be passed as a positional arg or keyword arg.
2017-10-19 17:11:30 -07:00
Scott Shawcroft
535c0059d7
atmel-samd: Turn on SAMD51 bootloader build layout. ( #348 )
2017-10-18 16:07:38 -04:00
Michael McWethy
b41cbe9256
CircuitPython now has struct instead of ustruct ( #302 )
...
Added struct module to shared-bindings and shared-module. removed ustruct
2017-10-18 12:50:20 -07:00
Scott Shawcroft
88c6d2349b
atmel-samd: Update asf4 to include USB fix for SAMD51.
2017-10-18 15:46:26 -04:00
Scott Shawcroft
f31a7b70e8
atmel-samd: Fix CDC now that its clear its async.
2017-10-18 15:46:26 -04:00
Scott Shawcroft
51cd4da76e
atmel-samd: Add mass storage support.
...
Fixes #260
2017-10-18 11:52:51 -07:00
Andon
c80e1908c5
Added Trinket to README.md ( #344 )
...
Added Trinket to README.md
Despite shipping with CircuitPython pre-installed, the Trinket M0 is
absent from the README.md file. This fixes that issue.
2017-10-17 13:00:10 -07:00
Dan Halbert
6e8fa8b3c9
Merge pull request #320 from dhalbert/master
...
merge 2.x changes into master; touch up Makefile CFLAGS logic
2017-10-13 14:51:09 -04:00
Dan Halbert
3c54e2c03c
TEMPORARY changes to get build to work on all boards. Make space on CPX; turn off -finline-limit
2017-10-12 21:54:38 -04:00
Dan Halbert
fabaa2ec30
merge 2.x changes into master; touch up Makefile CFLAGS logic
2017-10-12 20:10:31 -04:00
Dan Halbert
922006dd59
Don't create a new filesystem if we restart in safe mode. ( #319 )
2017-10-12 14:35:39 -04:00
Dan Halbert
b7591cfd19
Replace asf4 tree with submodule repo adafruit/asf4, branch circuitpython.
2017-10-12 10:55:15 -07:00
Scott Shawcroft
80654779e1
atmel-samd: Add support for internal filesystems. ( #311 )
...
* atmel-samd: Add support for internal filesystems.
This allows us to re-enable `os`. `random` is also enabled because
it solely depends on `os`.
Fixes #266 . Its also a pre-requisite for #260 .
* atmel-samd: Update SAMD51 linker script comments and MICROPY_MAX_STACK_USAGE enabling.
2017-10-10 14:36:00 -04:00
Dan Halbert
ef65ee78c5
Freeze libraries needed by adafruit_circuitplayground library into firmware.
...
This saves a lot of RAM. Fixes #287 .
Also fixed compilation of frozen_mpy.c to use supplied make rule rather than
builtin rule (supplied rule suppresses printing out the gcc command line).
2017-10-08 10:54:46 -06:00
Alex Vasylenko
9a9584aee0
Update pwm.rst
...
replace reference to non-existent `time.sleep_ms()`
2017-10-08 10:53:25 -06:00
Radomir Dopieralski
f4981677b0
Add a `gamepad` module for handling buttons in the background. ( #295 )
...
The `GamePad` singleton monitors buttons in the background to make sure a button press is never missed and debouncing happens consistently.
2017-10-03 13:35:57 -07:00
Dan Halbert
c478c10923
Do not allow a *io object to be used after deinit().
...
Fixes #278 , #277 , #276 , #275 .
2017-10-03 12:07:17 -07:00
Radomir Dopieralski
c2bb9e2eb5
Add board file for the hacked Trinket M0 Haxpress ( #303 )
...
Add a hacked Tinket M0 Haxpress board definition
Based on https://daveastels.com/2017/09/01/trinket-m0-express-hack/
2017-10-03 11:24:48 -07:00
Dan Halbert
7f74412882
Make touch more sensitive. Add .raw_value and .threshold attributes.
2017-10-02 11:15:51 -07:00
Scott Shawcroft
211b44e630
Update `time` to use SysTick ( #274 )
...
* atmel-samd: Add time back using the SysTick counter in the core. Fixes #261
* Switch to SysTick_Config
2017-09-29 16:58:13 -04:00
Scott Shawcroft
bac841df61
atmel-samd: Fix CDC by making sure we define ( #294 )
...
CONF_USB_COMPOSITE_CDC_ACM_EN before including ASF4 files.
2017-09-29 16:03:05 -04:00
Dan Halbert
b2dcc5bb6c
reset pins on PDMIn deinit(). Fixes #275 .
2017-09-29 08:54:05 -07:00
Scott Shawcroft
0bbb7a8199
Add support for patching newer ASF4 code. ( #292 )
...
* atmel-samd: Support patching after updating ASF4.
This makes it possible to automatically fix newer code.
* atmel-samd: Update ASF4 to include flash APIs for SAMD51.
This is the first automatic update that has caused a few deletions
where code was previously copied instead of moved.
This is a prerequisite for #260 .
2017-09-28 23:33:44 -04:00
Scott Shawcroft
8466d760f9
atmel-samd: Port baudrate reset to asf4 so we no longer hose Rosie.
...
We still won't be able to run tests but we will be reset into the
bootloader to test other stuff.
2017-09-27 21:58:54 -04:00
Scott Shawcroft
6839fff313
Move to ASF4 and introduce SAMD51 support. ( #258 )
...
* atmel-samd: Remove ASF3. This will break builds.
* atmel-samd: Add ASF4 for the SAMD21 and SAMD51.
* Introduce the supervisor concept to facilitate porting.
The supervisor is the code which runs individual MicroPython VMs. By
splitting it out we make it more consistent and easier to find.
This also adds very basic SAMD21 and SAMD51 support using the
supervisor. Only the REPL currently works.
This begins the work for #178 .
2017-09-22 21:05:51 -04:00
Jerry Needell
3ad01ddb04
Add Ananlog Pin aliases to trinket_m0 pins.c
2017-09-19 21:36:06 -07:00
Dan Halbert
75c3be37ac
Re-initialize ADC before every AnalogIn read. ( #255 )
...
`microcontroller.cpu.temperature` uses different ADC settings, and caused
AnalogIn to give wrong answers. AnalogIn can no longer assume it's the
only user of the ADC.
2017-09-16 13:06:23 -04:00
Asher Lieber
5aa8922038
add set_rgb_status_brightness ( #246 )
...
Add set_rgb_status_brightness() via `samd.rgb_status_brightness`.
Fixes #162 .
2017-09-12 12:09:22 -07:00
mrmcwethy
dd72fe6945
updated the http reference for max7219 to use the readthedocs from the adafruit cirtcuitpython area instead of the micropython area
2017-09-07 22:07:45 -07:00
KurticusMaximus
ca1f3e5fb7
Added DotStar to line 72
2017-09-06 14:53:31 -07:00
Dan Halbert
e0ddd528c8
Add Processor to microcontroller documentation TOC ( #237 )
2017-09-06 17:50:00 -04:00
Scott Shawcroft
6467e3d40b
shared-bindings: Prevent check_lock from being optimized away. ( #240 )
...
Fixes #229
2017-09-06 17:49:30 -04:00
Dan Halbert
acbca44512
Ctrl-C was causing a soft-reset in REPL.
...
Also allow an immediate ctrl-c in `input()`.
2017-09-06 14:47:23 -07:00
Scott Shawcroft
c0159c5e80
atmel-samd: Ensure MTB is off in case we ran a debug build before
...
a non-debug build.
2017-09-06 11:56:41 -07:00
Scott Shawcroft
6baacf46b7
py: Only load frozen modules when the filename has the prefix. ( #235 )
...
* py: Only load frozen modules when the filename has the prefix.
This allows one to override a built-in module by loading a newer
version onto the file system.
* Unbreak mpys
2017-09-05 22:01:17 -04:00
Carol Willing
f9c54665f7
Reduce depth in toc
2017-09-05 16:57:53 -07:00
Carol Willing
5c742e0058
rename some captions
2017-09-05 16:57:53 -07:00
Carol Willing
9df090f66b
collapse board listings
2017-09-05 16:57:53 -07:00
Carol Willing
1f71851d3a
Add a micropython section and edit drivers doc
2017-09-05 16:57:53 -07:00
Carol Willing
676a5b399e
Structure contents to be user facing
2017-09-05 16:57:53 -07:00
Scott Shawcroft
6d9d683443
atmel-samd: Enable 8-bit audio recording support even though it'll be
...
quiet. Also update the examples.
Fixes #226
2017-09-05 16:37:02 -07:00
Dan Halbert
e1eb1802a6
esp8266: restore machine module
2017-09-02 18:54:27 -07:00
Scott Shawcroft
7932df02ab
Style tweaks based on @willingc's feedback.
2017-09-01 13:54:29 -07:00
Scott Shawcroft
544f5c3fa4
docs: Add beginnings of troubleshooting doc.
...
Fixes #172 . Related to #214 .
2017-09-01 13:54:29 -07:00
Dan Halbert
a0d0b27faf
Fix issue #207 , esp8266 file operations problems ( #222 )
...
The frozen module `_boot.py` was not being loaded on restart
because `pyexec_frozen_module()` did not know about the new `.frozen`
pseudo-directory. Updated lower-level routine to look in the right place.
Also made ".frozen" and related values be `#define`s.
2017-09-01 16:12:26 -04:00
Radomir Dopieralski
c01bf678fd
Merge pull request #223 from tannewt/baudrate_fix
...
atmel-samd: Remember SPI baudrate.
2017-09-01 21:56:44 +02:00
Scott Shawcroft
e2f39a8d93
atmel-samd: Remember SPI baudrate.
...
This prevents the SERCOM from blipping the data line on each
transaction and therefore fixes #219 .
2017-09-01 12:44:52 -07:00