Dan Halbert
aaa7198071
Merge pull request #3161 from tannewt/bytearray_find
...
Add find variants to bytearray
2020-07-22 08:16:54 -04:00
Dan Halbert
8e90c1996c
Merge pull request #3162 from tannewt/update_mistune
...
Move release note converter to latest markdown helper lib
2020-07-22 00:24:12 -04:00
Scott Shawcroft
8ff2846bb2
Disable countio on circuitbrains basic
2020-07-21 16:21:49 -07:00
Scott Shawcroft
6db10f9c7d
Turn off find when CPYTHON_COMPAT is off
2020-07-21 15:40:51 -07:00
Scott Shawcroft
1b3bc98068
Merge remote-tracking branch 'adafruit/main' into bytearray_find
2020-07-21 15:12:04 -07:00
Scott Shawcroft
cb7df2e1ed
Merge pull request #3160 from tannewt/enable_pystack
...
Enable PYSTACK to keep function state out of the heap
2020-07-21 13:38:52 -07:00
Scott Shawcroft
e047ea287f
Merge pull request #3164 from tannewt/disable_network
...
Disable existing native networking.
2020-07-21 13:13:50 -07:00
Scott Shawcroft
da1c7f2a79
Merge pull request #3182 from ciscorn/extract_pyi
...
Improve .pyi generation
2020-07-21 13:13:12 -07:00
Scott Shawcroft
900edb2b8e
Only add .find without CPYTHON_COMPAT
2020-07-21 13:08:42 -07:00
Scott Shawcroft
5e3a853db4
Turn off GC opt on uchip board
2020-07-21 12:51:59 -07:00
Scott Shawcroft
a3a601d0c6
Merge pull request #3177 from WarriorOfWire/issue_3170
...
vectorio: fix VectorShape non-transposed pixel placement
2020-07-21 11:22:47 -07:00
Scott Shawcroft
678faff464
Be more aggressive with uChip build
2020-07-21 11:02:23 -07:00
Dan Halbert
7f27fcd63a
Merge pull request #3149 from DavePutz/issue2949
...
Issue#2949 Put in a check to prevent USB starvation by long calculations
2020-07-21 13:29:10 -04:00
Taku Fukada
a29105fefd
Improve .pyi generation
2020-07-22 00:37:22 +09:00
Kenny
e977b427aa
vectorio: fix VectorShape non-transposed pixel placement
...
Fixes https://github.com/adafruit/circuitpython/issues/3170
The absolute transform needs to be subtracted in all cases, not
only when the coordinate system is transposed.
2020-07-20 20:25:31 -07:00
Scott Shawcroft
389c81341d
Tweak declaration for boards with TCM
2020-07-20 18:16:20 -07:00
Scott Shawcroft
0c6935e336
Merge branch 'main' into disable_network
2020-07-20 16:28:22 -07:00
Scott Shawcroft
12edb57aac
Merge pull request #3166 from theacodes/bhb-adc
...
Add _bhb user module for Big Honking Button
2020-07-20 16:24:36 -07:00
Scott Shawcroft
e759769635
Merge pull request #3175 from jepler/background-callback-bugs
...
Background callback bugfixes
2020-07-20 16:17:31 -07:00
Jeff Epler
565d002a80
Merge pull request #3172 from WarriorOfWire/issue_3169
...
fix 3169: Polygon.points property
2020-07-20 16:01:45 -05:00
Kenny
e2d252a6d5
pre-allocate list of known size
2020-07-20 10:12:29 -07:00
Jeff Epler
c243c13f02
framebufferio: Handle auto refresh flag at reset
...
if we don't set the flag via accessor fn the tick enable might become wrong
2020-07-20 08:52:35 -05:00
Jeff Epler
9fd10322fe
supervisor: rename some locals for clarity
...
It's perfectly OK for these variables with static linkage to have the
same name, but it's inconvenient for humans like me.
2020-07-20 08:45:31 -05:00
Jeff Epler
db43c56f79
background callbacks: Clear any callbacks that were queued
...
Before this, a background callback that was on the list when
background_callback_reset was called could have ended up in a state
that made it "un-queueable": its "prev" pointer could have been non-NULL.
2020-07-20 08:44:39 -05:00
Kenny
efeae0d84f
fix 3169: Polygon.points property
...
The getter for vectorio.Polygon#points was not updated with the data type change of the stored points list.
This moves the implementation to shared_module and updates the data type to reflect the actual state.
2020-07-19 12:27:35 -07:00
Dan Halbert
8f928340c6
Merge pull request #3165 from pewpew-game/pewpew-m4-analogio
...
pewpew_m4: Enable analogio
2020-07-19 10:10:32 -04:00
Thea Flowers
7ba89f5330
Add _bhb user module for Big Honking Button
...
BHB needs better accuracy from the ADC readings. To avoid changing the ADC configuration for all boards or adding complexity to AnalogIn, I implemented a custom user module to allow the BHB to talk to the ADC in the way that it needs to. I'm open to other approaches here, but this seemed like the least invasive and complex option.
2020-07-18 22:45:08 -07:00
Radomir Dopieralski
11ef43b071
pewpew_m4: Disable USB_HID back
...
German translation fails to build, so I have to disabled USB_HID after
all.
2020-07-18 20:09:30 +02:00
Radomir Dopieralski
8d692f33a8
pewpew_m4: Enable analogio and usb_hid
...
The newest version for the Stage library for PewPewM4 no longer contains
embedded graphics, which frees enough space in flash to enabled back
AnalogIO and also add USB_HID. There is still ~192 bytes left free.
If new additions to CircuitPython make it grow further, we can disable
USB_HID again.
2020-07-18 19:30:40 +02:00
Scott Shawcroft
6ac2fe58fd
Update translations
2020-07-17 18:03:52 -07:00
Scott Shawcroft
f38a9c8d29
Add cast for mpy-cross warning
2020-07-17 17:55:06 -07:00
Scott Shawcroft
610e0171aa
Disable existing native networking.
...
We're moving towards a co-processor model and a Wiznet library is
already available.
New native APIs will replace these for chips with networking like the
ESP32S2 but they won't be these.
2020-07-17 17:43:02 -07:00
Scott Shawcroft
384a7f7e70
Move release note converter to latest markdown helper lib
2020-07-17 17:09:48 -07:00
Scott Shawcroft
4b157aa6b8
Add find varients to bytearray
2020-07-17 17:07:37 -07:00
Scott Shawcroft
1160635608
Enable PYSTACK to keep function state out of the heap
2020-07-17 17:03:42 -07:00
Jeff Epler
9cdf5e148a
Merge pull request #2879 from jepler/background-callback
...
Use a linked list of background tasks to perform
2020-07-17 15:46:03 -05:00
Jeff Epler
98eef79faa
background_callback_gc_collect: We must traverse the whole list
2020-07-17 14:55:46 -05:00
Jeff Epler
6912d31560
uchip: reclaim some flash space
2020-07-17 14:32:05 -05:00
Jeff Epler
a18a392109
background_callback: Add gc collect callback
...
A background callback must never outlive its related object. By
collecting the head of the linked list of background tasks, this will
not happen.
One hypothetical case where this could happen is if an MP3Decoder is
deleted while its callback to fill its buffer is scheduled.
2020-07-17 08:36:26 -05:00
Dan Halbert
88d8956378
Merge pull request #3143 from tannewt/improve_json
...
Add support to json.load for any object with readinto
2020-07-16 14:33:33 -04:00
Scott Shawcroft
72f6d7ee21
Merge pull request #3155 from jepler/esp32s2-parallel-build
...
esp32s2: Take care to invoke the sub-build-system only once
2020-07-16 11:26:53 -07:00
Scott Shawcroft
7bb508bf43
Merge pull request #3157 from tinkeringtech/tinkeringtech-scoutmakes-azul
...
Addition of Tinkeringtech ScoutMakes Azul nRF52840 based platform to CircuitPython
2020-07-16 11:03:31 -07:00
Scott Shawcroft
3610520ca4
Merge pull request #3156 from jepler/esp32s2-serial-number
...
esp32s2: Use the device's EUI-48 address as unique ID
2020-07-16 11:00:02 -07:00
TinkeringTech
416a32ab01
fixed build.yml file formatting errors
2020-07-15 21:58:40 -04:00
TinkeringTech
49fcfd14d2
Added the TinkeringTech ScoutMakes Azul platform to CircuitPython
2020-07-15 21:49:34 -04:00
Jeff Epler
81105cb9ef
supervisor: usb: note that it's unusual to need to call usb_background
2020-07-15 11:49:44 -05:00
Jeff Epler
1df48176ce
supervisor: factor supervisor_background_tasks from sundry ports
2020-07-15 11:49:44 -05:00
Jeff Epler
6160d11c5a
supervisor: factor out, Handle USB via background callback
2020-07-15 11:49:44 -05:00
Jeff Epler
a2919a6fb2
esp32s2: Use the device's EUI-48 address as unique ID
...
On my hardware, esptool reports
MAC: 7c:df:a1:02:6c:b8
after this change, the USB descriptor says SerialNumber: 7CDFA1026CB8
and microcontroller.cpu.id has
>>> "".join("%02x" % byte for byte in microcontroller.cpu.uid)
'c7fd1a20c68b'
Note that the nibble-swapping between USB and cpu.uid is typical.
For instance, an stm32 board has USB SerialNumber
24002500F005D42445632302 but hex-converted microcontroller.cpu.id
420052000f504d4254363220.
2020-07-15 11:45:13 -05:00
Jeff Epler
910f69c42b
esp32s2: Take care to invoke the sub-build-system only once
...
This allows "make -j" in the outer build system to function properly,
with a potentially large decrease in build times on high end desktop
systems.
2020-07-15 10:30:07 -05:00