Commit Graph

10411 Commits

Author SHA1 Message Date
Scott Shawcroft d42c83ff41
Merge pull request #806 from jepler/hashlib-py3
Rename uhashlib->hashlib, improve python3 compatibility
2018-05-06 22:36:52 -07:00
Scott Shawcroft c4cfd1170e
Merge pull request #811 from dhalbert/3.0_filesystem_writability_on_boot
3.0: boot.py change of filesystem writability would get overridden.
2018-05-06 22:27:54 -07:00
Dan Halbert 224e245e05 clarify comment 2018-05-07 00:08:26 -04:00
Dan Halbert fc214fb320 boot.py change of filesystem writability would get overridden. 2018-05-06 23:48:11 -04:00
Jeff Epler 2955ada22f docs: fix references to uhashlib 2018-05-06 12:31:54 -05:00
Jeff Epler 11a97bdffe uhashlib: masquerade as hashlib for python3 compatibility 2018-05-06 12:31:54 -05:00
Jeff Epler 005226ae54 uhashlib: some functions should refuse unicode for python3 compatibility
.. this maybe should be subject to MICROPY_CPYTHON_COMPAT, except that
is not defined in the main circuitpython ports so it would be a change
that makes no difference.
2018-05-06 12:31:54 -05:00
Jeff Epler b2084d37d6 tests: add new tests for uhashlib differences
.. these tests currently fail, but a subsequent commit will
fix them
2018-05-06 12:31:53 -05:00
Scott Shawcroft d32349cee8
Merge pull request #804 from dhalbert/boot_out_fixes
3.0: Handle bad power on reset.
2018-05-04 10:06:35 -07:00
Scott Shawcroft 034b189c75
Merge pull request #805 from dhalbert/3.0_cpx_freeze_hid_cpx
3.0: add CircuitPlayground and HID to CPX frozen modules
2018-05-04 09:59:16 -07:00
Dan Halbert 32363b801b 3.0: add CircuitPlayground and HID to CPX frozen modules 2018-05-04 08:44:33 -04:00
Dan Halbert f73e06d910 minor function API improvement 2018-05-04 08:28:05 -04:00
Dan Halbert f486ead84a Handle bad power on reset. 2018-05-03 23:43:02 -04:00
Scott Shawcroft a8bd37f14d
Merge pull request #799 from larsks/feature/circuitpython/station-ssid
esp8266/modnetwork: Allow to get ESSID of AP that STA is connected to.
2018-05-03 10:12:50 -07:00
Scott Shawcroft 2fe552694b
Merge pull request #796 from larsks/bug/795
try both binascii and ubinascii in inisetup.py
2018-05-03 10:04:37 -07:00
Scott Shawcroft 37bf61f6ac
Merge pull request #797 from jepler/binascii-doc
docs: fix references to ubinascii
2018-05-03 10:02:37 -07:00
Lars Kellogg-Stedman 1e0353e2db esp8266/modnetwork: Allow to get ESSID of AP that STA is connected to.
This patch enables iface.config('essid') to work for both AP and STA
interfaces.

(cherry picked from commit d8fdb77ac9)
2018-05-03 11:49:37 -04:00
Jeff Epler 647ff387d9 docs: fix references to ubinascii 2018-05-03 09:34:43 -05:00
Lars Kellogg-Stedman ad1b16a3ec ports/esp8266: try both binascii and ubinascii in inisetup.py
in recent circuitpython builds, `ubinascii` is available as
`binascii`.  This modifies `modules/inisetup.py` to use the same
import semantics as `modules/websocket_helper.py`: first try importing
`ubinascii`, and if that fails, fall back to importing `binascii`.

Closes adafruit/circuitpython#795
2018-05-03 09:23:54 -04:00
Dan Halbert 9d484c4935
Merge pull request #789 from tannewt/pdmin3
Re-enable PDMIn without ASF
2018-05-02 19:59:20 -04:00
Scott Shawcroft 04f75b8903 Reduce the buffer size back to what 2.x has. Increase was leftover
from debugging.
2018-05-02 15:21:43 -07:00
Scott Shawcroft 22b7cd3d51 Fix 8 bit recordings on CPX.
The DMA trigger source was incorrect when using serializer 1 on
the SAMD21.

Playback register was incorrect for 8 bit as well. Now fixed.
2018-05-02 15:15:25 -07:00
Scott Shawcroft 449385b250
Merge pull request #790 from dhalbert/cpu_temp
Implement microcontroller.cpu.temperature.
2018-05-02 12:23:03 -07:00
Dan Halbert 33b9c39f58 peripherals.c should include peripherals.h 2018-05-02 13:50:34 -04:00
Scott Shawcroft 3d36f63f9e
Merge pull request #788 from jepler/binascii-py3
(u)binascii: better python3 compatibility
2018-05-02 10:15:31 -07:00
Scott Shawcroft 41101bc2c6
Merge pull request #794 from larsks/bug/793
allow esptool.py invocation to be set via make vars
2018-05-02 10:02:32 -07:00
Scott Shawcroft 61d3dd85ec
Merge pull request #792 from larsks/bug/791
correct path to conf.py in makeversionhdr.py
2018-05-02 09:57:05 -07:00
Lars Kellogg-Stedman 3e35cbcd5b allow esptool.py invocation to be set via make vars
This commit replaces the literal calls to `esptool.py` with the
`$(ESPTOOL)` Makefile variable. This allows one to set the esptool
invocation on the Make command line:

    make ESPTOOL="python2 $(which esptool.py)"

(or via the environment, an include file, etc)

Closes #793
2018-05-02 09:47:01 -04:00
Lars Kellogg-Stedman 4e977aafe4 correct path to conf.py in makeversionhdr.py
the py/makeversionhdr.py script was looking for `conf.py` in the
`docs/` directory, but this was relocated in 46e7f8e.  This is used by
the fallback `get_version_info_from_docs_conf` method, which is only
consulted if `git` is unavailable in the build environment.

Closes #791.
2018-05-02 08:50:17 -04:00
Dan Halbert e565282da9 fix minor comment typos 2018-05-01 22:04:11 -04:00
Dan Halbert 3a2b4af830 Implement microcontroller.cpu.temperature on '21 and '51. 2018-05-01 21:35:55 -04:00
Noralf Trønnes 681399f8db atmel-samd: RTC: Improve precision when setting datetime
The prescaler is not reset when setting the counter so we can be off by
as much as 1023/1024 seconds. Fix this by resetting the RTC module.
2018-05-01 21:35:24 -04:00
Jeff Epler c2f0c57a26 ubinascii: masquerade as binascii for python3 compatibility 2018-05-01 17:10:53 -05:00
Scott Shawcroft cfea51ec68 Re-enable PDMIn without ASF and using the helpers added with
I2SOut.

The API is almost the same except the frequency attribute has been
renamed to sample_rate so that its less likely to be confused with
frequencies within the audio itself.

Fixes #263.
2018-05-01 14:35:43 -07:00
Jeff Epler 0f869bbbf1 ubinascii: some functions should refuse unicode for python3 compatibility
.. this maybe should be subject to MICROPY_CPYTHON_COMPAT, except that
is not defined in the main circuitpython ports so it would be a change
that makes no difference.
2018-04-30 20:06:29 -05:00
Jeff Epler e7f463320f tests: Add new tests for ubinascii differences
.. some of these tests currently fail, but a subsequent commit will
fix them.
2018-04-30 20:06:29 -05:00
Scott Shawcroft dd0f8689a1
Merge pull request #786 from notro/rtc_set_datetime_precision
atmel-samd: RTC: Improve precision when setting datetime
2018-04-29 20:30:37 -07:00
Scott Shawcroft 6855541e33
Merge pull request #780 from sommersoft/esp8266_gpio16
Fix GPIO16 Board Reset; Updated Usage
2018-04-29 20:09:52 -07:00
Noralf Trønnes 62d7a800d7 atmel-samd: RTC: Improve precision when setting datetime
The prescaler is not reset when setting the counter so we can be off by
as much as 1023/1024 seconds. Fix this by resetting the RTC module.
2018-04-29 20:43:07 +02:00
sommersoft 396e4ffc34 implemented 'claim_pin' methodology; updated 'open_drain' handling 2018-04-28 17:27:23 +00:00
sommersoft 4e1f7d43eb added exception for PULL_UP; corrected open_drain handling 2018-04-27 02:51:07 +00:00
sommersoft 441ce2a78f reset GPIO16 to input on deinit 2018-04-26 01:35:58 +00:00
Scott Shawcroft 83e390714f
Merge pull request #779 from tannewt/replace_logos
Replace MicroPython logos with CircuitPython logos
2018-04-25 18:04:00 -07:00
Scott Shawcroft 3d6a6b81a0 Replace MicroPython logos with CircuitPython logos
Fixes #306
2018-04-25 15:41:18 -07:00
sommersoft bd5a5daaae updated GPIO16 construct and handling 2018-04-25 03:59:36 +00:00
sommersoft e70ece4c41 now checks for proper pin in is_pin_free; initialize GPIO16 as input in reset_pins 2018-04-25 03:57:09 +00: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