Scott Shawcroft
3d6a6b81a0
Replace MicroPython logos with CircuitPython logos
...
Fixes #306
2018-04-25 15:41:18 -07:00
Dan Halbert
8cadcc8e83
Merge pull request #776 from dhalbert/hid_gamepad
...
HID gamepad support
2018-04-24 14:27:04 -04:00
Dan Halbert
48f595ee13
convert wrapper class to just a module
2018-04-24 13:28:26 -04:00
Dan Halbert
9daa1a68d8
HID gamepad support
2018-04-23 23:51:23 -04:00
Scott Shawcroft
58ba74194e
Merge pull request #765 from jerryneedell/jerryn_tick
...
modify tick_delay to handle SysTick->VAL rollover
2018-04-20 15:40:00 -04:00
Jerry Needell
bef05ffbf1
cleanup in tick.c
2018-04-20 15:23:03 -04:00
Jerry Needell
fe738598da
modify tick.c to simplify - remove interupt disable from common_hal_pulseio_pulsein_resume
2018-04-20 11:59:33 -04:00
Dan Halbert
77092f2380
Merge pull request #772 from tannewt/rtc51
...
atmel-samd: Fix M4 RTC and ItsyBitsy M4 definition
2018-04-19 23:08:20 -04:00
Jerry Needell
16bb40b110
modify tic.c to chec if interrupts are enabled, rename us_between_ticks to us until_next_tick
2018-04-19 22:25:48 -04:00
Jerry Needell
3399d541c3
Merge remote-tracking branch 'origin/master' into jerryn_tick
2018-04-19 20:54:47 -04:00
Dan Halbert
321fa206c9
Merge pull request #773 from tannewt/remove_revb_build
...
Remove Rev B Metro M4 from Travis build.
2018-04-19 15:42:48 -04:00
Scott Shawcroft
8193a6eb18
Remove Rev B Metro M4 from Travis build.
...
Testers should have production boards on the way.
2018-04-19 15:19:14 -04:00
Scott Shawcroft
898a7d92e3
atmel-samd: Fix M4 RTC and ItsyBitsy M4 definition
2018-04-19 14:42:03 -04:00
Scott Shawcroft
59be777764
Merge pull request #768 from sommersoft/rtc_fix
...
RTC Fix: Revert To Using Internal Oscillator
2018-04-18 07:49:19 -07:00
sommersoft
a0eb51cc97
updated asf4_config: reverted oscillators to use internal vs external for RTC
2018-04-18 03:35:58 +00:00
Jerry Needell
e09d95067c
update tick.c (fix LOAD value) update PulseIn.c (do not enable interrupts for trigger_duration > 1000
2018-04-17 21:46:15 -04:00
Scott Shawcroft
7f7cbe8efa
Merge pull request #760 from ladyada/master
...
don't use python nrfutil on windows, go with exe we have in repo
2018-04-16 15:27:44 -07:00
Scott Shawcroft
81d395d825
Merge pull request #745 from notro/time_rtc
...
RFC: Add rtc module
2018-04-16 15:26:54 -07:00
Dan Halbert
eba10eab49
Merge pull request #764 from tannewt/nvm3
...
Turn on nvm in 3.0.
2018-04-16 18:11:56 -04:00
Scott Shawcroft
301479cd44
Remove "Get or set"
2018-04-16 15:00:58 -07:00
Scott Shawcroft
84d4be279e
Add a table of contents reference to RTC
2018-04-16 15:00:01 -07:00
Jerry Needell
e55e06d501
modify tick.c to work when interrupts disabled - modify PulseIn.c to cast argument to common_hal_delay_us
2018-04-16 08:11:14 -04:00
Noralf Trønnes
8e2080411f
atmel-samd: Add rtc module support
...
Support the rtc module by using hal_calendar.
2018-04-16 13:15:08 +02:00
Noralf Trønnes
8d1719f190
Add rtc module
...
Add an rtc module that provides a singleton RTC class with
- a datetime property to set and get time if the board supports it.
- a calbration property to adjust the clock.
There's also an rtc.set_time_source() method to override this RTC object using pure python.
The time module gets 3 methods:
- time.time()
- time.localtime()
- time.mktime()
The rtc timesource is used to provide time to the time module.
lib/timeutils is used for time conversions and thus only supports dates after 2000.
2018-04-16 12:49:10 +02:00
Scott Shawcroft
5af4e79ed3
Correct example. Thanks @jepler!
2018-04-13 16:43:21 -07:00
Scott Shawcroft
812fe0c93f
Turn on nvm in 3.0.
...
Its 256b on M0 and 8k on M4 to match flash erase sizes.
Fixes #758
2018-04-13 16:22:28 -07:00
Dan Halbert
10eabf6bc2
Merge pull request #756 from tannewt/audio3
...
Add audio output support!
2018-04-13 14:59:10 -04:00
ladyada
926849d7a8
don't use python nrfutil on windows, it doesnt work :/ tested feather52 makefile on windows/mingw
2018-04-13 14:00:20 -04:00
Scott Shawcroft
22194d5977
Tweaks based on dhalbert's feedback.
2018-04-13 10:51:01 -07:00
Scott Shawcroft
0f4a2032b7
Merge pull request #759 from ladyada/master
...
quoting paths
2018-04-13 09:32:51 -07:00
ladyada
1418445b5e
fix for spaces in path
2018-04-12 23:12:36 -04:00
ladyada
ce6b94f5e2
deal with spaces in directories
2018-04-12 21:43:23 -04:00
Scott Shawcroft
8dcfeb6240
Fix Makefile
2018-04-12 18:17:46 -07:00
Scott Shawcroft
28642ab10d
Add audio output support!
...
This evolves the API from 2.x (and breaks it). Playback devices are now
separate from the samples themselves. This allows for greater playback
flexibility. Two sample sources are audioio.RawSample and audioio.WaveFile.
They can both be mono or stereo. They can be output to audioio.AudioOut or
audiobusio.I2SOut.
Internally, the dma tracking has changed from a TC counting block transfers
to an interrupt generated by the block event sent to the EVSYS. This reduces
the overhead of each DMA transfer so multiple can occure without using up TCs.
Fixes #652 . Fixes #522 . Huge progress on #263
2018-04-12 16:35:13 -07:00
Scott Shawcroft
12f1aa25fd
Merge pull request #757 from tannewt/status_pixel_fix
...
Fix the status neopixel flashing.
2018-04-12 16:33:48 -07:00
Scott Shawcroft
5f9b3f2b87
Fix the status neopixel flashing.
...
We were storing the wrong current color.
2018-04-12 13:33:58 -07:00
Dan Halbert
e311d17905
Merge pull request #755 from tannewt/itsy_m4
...
Add initial ItsyBitsy M4 support
2018-04-12 14:42:05 -04:00
Scott Shawcroft
2a26dac2bc
Add initial ItsyBitsy M4 support
2018-04-12 11:16:52 -07:00
Scott Shawcroft
f02cbeabab
Merge pull request #747 from dhalbert/reformat
...
add storage.erase_filesystem() to erase and reformat CIRCUITPY
2018-04-10 10:26:07 -07:00
Dan Halbert
eaa9923a8f
force_create rename got lost due to editing error
2018-04-10 12:24:27 -04:00
Dan Halbert
1b12c42477
Merge remote-tracking branch 'adafruit/master' into reformat
2018-04-10 12:17:00 -04:00
Dan Halbert
80fb61ea44
remove more unneeded includes
2018-04-10 12:16:46 -04:00
Dan Halbert
04b2c8be5a
remove unnecessary includes in esp8266 common-hal storage code
2018-04-10 12:13:21 -04:00
Dan Halbert
5f98953ed8
esp8266 and nrf: raise NotImplementedError
2018-04-10 12:08:41 -04:00
Jeff Epler
1e9a27177c
esp8266: Disable "strict aliasing" in compiler like in atmel-samd
...
This caused a fatal compiler diagnostic after #750 . This compiler
flag is already specified in the atmel-samd builds, so it makes
sense to do it here for the same reasons.
2018-04-09 22:23:39 -04:00
Scott Shawcroft
fd70383aa0
Fix rom qstr pool length.
2018-04-09 22:23:39 -04:00
Scott Shawcroft
3b511e503a
Prevent a heap pointer from living on the stack longer than we need.
2018-04-09 22:23:39 -04:00
Jeff Epler
eb7d0e317a
Create genhdr/ directory in time
2018-04-09 22:23:39 -04:00
Dan Halbert
a0cd94c184
Merge pull request #752 from jepler/esp8266-strict-aliasing
...
esp8266: Disable "strict aliasing" in compiler like in atmel-samd
2018-04-09 22:21:21 -04:00
Jeff Epler
c5d2a0da04
esp8266: Disable "strict aliasing" in compiler like in atmel-samd
...
This caused a fatal compiler diagnostic after #750 . This compiler
flag is already specified in the atmel-samd builds, so it makes
sense to do it here for the same reasons.
2018-04-09 21:17:26 -05:00