Thea Flowers
73989dbcaf
Add board configuration for Winterbloom Sol
2019-11-04 23:11:42 -08:00
Dan Halbert
8cd2f87e99
Merge pull request #2236 from tannewt/bleio_tweaks
...
Refine _bleio
2019-11-04 22:27:54 -05:00
Scott Shawcroft
47e50e5659
Merge remote-tracking branch 'adafruit/master' into bleio_tweaks
2019-11-01 13:20:58 -07:00
Dan Halbert
99fe905039
Reduce DotStar status brightness; macros for status colors
2019-11-01 13:37:36 -04:00
Dan Halbert
ab6fd34828
add object types to rgb status objects;mark spi rgb objects as never_reset
2019-10-25 22:32:43 -04:00
Dan Halbert
cdeb0857a9
Initial Itsy nRF52840 defn
2019-10-25 11:15:34 -04:00
Scott Shawcroft
ece8352126
Fix build by removing unused vars
2019-10-22 17:24:04 -07:00
Scott Shawcroft
ae30a1e5aa
Refine _bleio
...
This PR refines the _bleio API. It was originally motivated by
the addition of a new CircuitPython service that enables reading
and modifying files on the device. Moving the BLE lifecycle outside
of the VM motivated a number of changes to remove heap allocations
in some APIs.
It also motivated unifying connection initiation to the Adapter class
rather than the Central and Peripheral classes which have been removed.
Adapter now handles the GAP portion of BLE including advertising, which
has moved but is largely unchanged, and scanning, which has been enhanced
to return an iterator of filtered results.
Once a connection is created (either by us (aka Central) or a remote
device (aka Peripheral)) it is represented by a new Connection class.
This class knows the current connection state and can discover and
instantiate remote Services along with their Characteristics and
Descriptors.
Relates to #586
2019-10-21 18:57:03 -07:00
Kamil Tomaszewski
f3151bb6c4
Use get top and limit stack functions
2019-10-18 11:05:08 +02:00
Kamil Tomaszewski
96756b3945
Add functions to get top and limit stack
2019-10-18 11:04:45 +02:00
Dan Halbert
be8136dc6d
Merge remote-tracking branch 'adafruit/master' into bonding1
2019-10-15 15:55:21 -04:00
Scott Shawcroft
1a7c787d3c
Merge branch 'master' into master
2019-10-14 19:47:46 -07:00
arturo182
e0f60d0c17
Add IS25LP128F flash device definition
2019-10-14 23:42:53 +02:00
Cedar Grove Maker Studios
f1ab9aaa9c
add def for AT25SF161-SSHD-T 2MiB SPI flash chip
2019-10-14 11:58:14 -07:00
kamtom480
f6e553f89f
Merge branch 'master' into circuitpython-number-endpoint
2019-10-08 09:41:29 +02:00
Kamil Tomaszewski
29844db332
Use boolean type for renumber_endpoints
2019-10-08 09:26:02 +02:00
Kamil Tomaszewski
badf32e88d
Add HID OUT
2019-10-07 13:40:44 +02:00
Kamil Tomaszewski
1205d3e305
Add validation
2019-10-07 12:31:42 +02:00
Kamil Tomaszewski
7aefcc449a
Add an alternative way to number the USB endpoints
...
Two options available:
- relative numbering (USB_RELATIVE_EP_NUM = 1) - default
- absolute numbering (USB_RELATIVE_EP_NUM = 0) - new!
2019-10-07 12:31:42 +02:00
Dan Halbert
fc19e03128
WIP: bonding
2019-10-06 21:30:26 -04:00
Kamil Tomaszewski
ef42abb818
Add a way to change max packet size for MSC
2019-10-04 13:49:33 +02:00
Hierophect
eacdb1da6e
Disable timeout, remove redundancy
2019-10-03 14:43:25 -04:00
Hierophect
8a4bbae077
Fix typo causing parsing error
2019-10-02 18:18:52 -04:00
Hierophect
9aa6d215fd
Add some definitions for when F412 can be implemented
2019-10-02 16:03:22 -04:00
Dan Halbert
b8200d7295
fix atmel-samd filesystem_tick'ing; clear_temp_status() should check for status indicator in use
2019-09-09 23:17:52 -04:00
Dan Halbert
cf6fbcbf2d
Merge pull request #2123 from hierophect/stm32-flashstub-fix
...
Fix stm32f412zg compile warning
2019-09-06 14:56:24 -04:00
Hierophect
bc37649884
Remove unused static function
2019-09-06 11:06:02 -04:00
Dan Halbert
f3af2a6fb7
Merge remote-tracking branch 'adafruit/master' into choose-usb-devices-xac
2019-09-04 21:56:13 -04:00
Dan Halbert
195de97c67
use only one endpoint pair for MSC except on SAMD21
2019-09-04 21:45:16 -04:00
Dan Halbert
fca440fb66
Merge pull request #2113 from tannewt/displayio_hidden
...
Add .hidden to TileGrid and Group
2019-09-04 15:48:00 -04:00
Dan Halbert
b46c8dcc62
Merge pull request #2065 from hierophect/f411re-feature-buildout
...
F411re feature buildout
2019-09-04 15:45:54 -04:00
Hierophect
479b047618
Reverted descriptor changes pending HID restructuring
2019-09-04 13:58:18 -04:00
Dan Halbert
95a5a57f94
Merge remote-tracking branch 'adafruit/master' into choose-usb-devices-xac
2019-09-04 00:12:09 -04:00
Scott Shawcroft
949f8761b8
Add .hidden to TileGrid and Group
...
This allows for one to preserve ordering within a Group while
hiding something temporarily.
Fixes #1688
2019-09-03 16:15:27 -07:00
Dan Halbert
42f5edbd33
WIP
2019-09-03 14:44:46 -04:00
Dan Halbert
35c7646ee4
Make trivial change to redo GitHub Actions build.
...
The GitHub Actions build for this PR is failing for reasons that make no sense. Make a tiny commit change to see if it will refresh things and work again.
2019-09-03 08:52:21 -04:00
arturo182
12c97b42a4
Add GD25Q32C flash device definition
2019-09-02 23:22:52 +02:00
Dan Halbert
4b97ec9d23
Merge in 4.x status dotstar fix
2019-09-02 10:25:38 -04:00
Scott Shawcroft
0876d5c4ad
Disable bitbangio on Itsy M0
...
Also, switch CIRCUITPY_BITBANG_APA102 to makefile setting so it can alter included files
2019-08-27 15:21:47 -07:00
Scott Shawcroft
7324b70a7c
Rework based on Dan's review
2019-08-23 15:27:21 -07:00
Scott Shawcroft
9993a99906
Add initial Monster M4SK build
2019-08-22 14:24:32 -07:00
Scott Shawcroft
70680d5b22
EPaper displays work mostly.
2019-08-22 14:08:33 -07:00
Hierophect
e490e6361f
Add warnings, cosmetic fixes, remove vestigial modules
2019-08-19 10:47:18 -04:00
Hierophect
7dbf1a8caa
text fixes
2019-08-15 17:56:15 -04:00
Hierophect
1f42ce5f40
QOL fixes, compatibility fixes, attribution
2019-08-15 17:45:40 -04:00
Hierophect
bc7ba33892
Add uid fetch, revert USB hacks
2019-08-15 16:35:01 -04:00
Hierophect
a9d3ad86e5
Fix flash size, add filesystem disable flag
2019-08-15 15:55:33 -04:00
Hierophect
620d3d14dd
Add conditional endpoints to descriptor script
2019-08-15 13:41:51 -04:00
Dan Halbert
243334da75
Merge remote-tracking branch 'adafruit/master' into ble-pairing
2019-08-05 23:06:24 -04:00
Scott Shawcroft
26f64dd8ec
Merge remote-tracking branch 'adafruit/4.1.x' into merge_in_410
2019-08-05 17:53:08 -07:00
Hierophect
a635d46b1a
Fix merge related issues
2019-08-04 17:19:38 -04:00
Hierophect
0c43bae01d
Merge branch 'master' into f411re-feature-buildout
2019-08-04 16:37:49 -04:00
Dan Halbert
ee518b9141
Merge remote-tracking branch 'adafruit/master' into ble-pairing
2019-07-31 11:22:48 -04:00
Dan Halbert
91d791afd0
cleanup adapter.address; add uniquish suffix to BLE device name
2019-07-31 00:30:24 -04:00
Hierophect
90b1701b6c
Add CDC REPL access
2019-07-26 14:06:27 -04:00
Scott Shawcroft
af8cfbedfb
Add knobs for SSD1322 and two fixes.
...
* Fix terminal clear after first successful code.py run.
* Fix transmitting too many bytes for column constraint with single
byte bounds.
2019-07-25 15:41:12 -07:00
Scott Shawcroft
8ec2d6ce49
Merge pull request #2007 from hierophect/F4xx-port-setup
...
Add STM32 Discovery F412ZG and F411RE support
2019-07-24 18:49:48 -07:00
Hierophect
981398406c
Implement working (if useless) USB on F411
2019-07-24 16:23:35 -04:00
Hierophect
d66c9590af
Merge tinyusb changes from upstream
2019-07-24 14:54:22 -04:00
hathach
5d03cda01a
whitespace
2019-07-24 16:49:13 +07:00
hathach
c921f6637f
update tinyusb lib to 0.5.x
2019-07-24 16:46:31 +07:00
Hierophect
267468834d
Pin down some TUSB issues
2019-07-23 19:40:26 -04:00
Hierophect
a3673cc79b
Set up for new tinyusb integration. Not yet functional.
2019-07-22 17:16:33 -04:00
Hierophect
f65404cc05
Cleanup missed items
2019-07-22 13:08:55 -04:00
Hierophect
58630a844a
Add feature conditionals and clean up
2019-07-22 12:58:28 -04:00
Scott Shawcroft
6797ec6ed3
Add support for grayscale displays that are < 8 bit depth.
...
This also improves Palette so it stores the original RGB888 colors.
Lastly, it adds I2CDisplay as a display bus to talk over I2C. Particularly
useful for the SSD1306.
Fixes #1828 . Fixes #1956
2019-07-19 16:06:11 -07:00
Scott Shawcroft
4a6bdb6fe4
Track a dirty area for in-memory bitmaps
...
This fixes the bug that bitmap changes do not cause screen updates
and optimizes the refresh when the bitmap is simply shown on the
screen. If the bitmap is used in tiles, then changing it will
cause all TileGrids using it to do a full refresh.
Fixes #1981
2019-07-18 16:47:28 -07:00
Hierophect
734012aa8b
Makefile cleanup
2019-07-18 17:55:57 -04:00
Hierophect
755b86e38b
Deinit-capable USB on 411
2019-07-18 17:17:46 -04:00
Hierophect
43e8a4110f
Add missing files for DigitalIO
2019-07-17 14:18:01 -04:00
Scott Shawcroft
6fad383367
Merge pull request #1925 from C47D/rgb_status
...
Initial support for RGB led as Status indicator, fixes #1382
2019-07-09 10:31:34 -07:00
C47D
40fbac13cd
[rgb status] Adjust to current brightness
2019-07-08 22:06:43 -05:00
C47D
324cbe4327
[rgb status] Also invert the pwm values on clear_temp_status
2019-07-07 21:15:51 -05:00
C47D
fae1039401
[rgb led status] Add CP_RGB_STATUS_PWM_INVERTED symbol to invert pwm signals.
2019-07-06 16:50:48 -05:00
Scott Shawcroft
5610e05b8c
Fix up nrf so that it is initialized properly. Also, do not reset
...
it's pins.
2019-07-06 12:48:16 -07:00
Hierophect
040acc3a32
remove dependencies for stable build
2019-07-01 19:47:10 -04:00
Hierophect
94a2eff05c
remove build, fix link issues)
2019-06-28 19:22:23 -04:00
Hierophect
16ba035ba7
first commit, very crude
2019-06-28 15:36:08 -04:00
Scott Shawcroft
2004be96ac
Properly reset the terminal each init.
...
Fixes #1944
2019-06-26 17:36:30 -07:00
Craig Forbes
99bcb4e2a4
Create a /lib directory when creating the filesystem.
2019-06-14 15:41:32 -05:00
Scott Shawcroft
eb21fc3e31
Add partial display update support.
...
Different operations to the display tree have different costs. Be
aware of these costs when optimizing your code.
* Changing tiles indices in a TileGrid will update an area
covering them all.
* Changing a palette will refresh every object that references it.
* Moving a TileGrid will update both where it was and where it moved to.
* Adding something to a Group will refresh each individual area it
covers.
* Removing things from a Group will refresh one area that covers all
previous locations. (Not separate areas like add.)
* Setting a new top level Group will refresh the entire display.
Only TileGrid moves are optimized for overlap. All other overlaps
cause sending of duplicate pixels.
This also adds flip_x, flip_y and transpose_xy to TileGrid. They
change the direction of the pixels but not the location.
Fixes #1169 . Fixes #1705 . Fixes #1923 .
2019-06-12 11:32:39 -07:00
Carlos
9de46f3edd
[supervisor/shared/rgb_led_status.c] Initial support for RGB led as Status
2019-06-04 21:22:38 -05:00
Scott Shawcroft
7a117f52ed
Make point 2 in areas exclusive and simplify full_coverage.
2019-05-22 15:00:47 -07:00
Scott Shawcroft
3fad7de8db
Rework the pixel computation to use areas
...
This changes the displayio pixel computation from per-pixel to
per-area. This is precursor work to updating portions of the screen
(#1169 ). It should provide mild speedups because bounds checks are
done once per area rather than once per pixel. Filling by area also
allows TileGrid to maintain a row-associative fill pattern even when
the display's refresh is orthogonal to it.
2019-05-21 17:41:06 -07:00
Dan Halbert
dae8b21bb9
Merge pull request #1869 from tannewt/fix_programmatic_safe_mode
...
Update `on_next_reset` for new safe mode.
2019-05-09 23:03:39 -04:00
Scott Shawcroft
b87565138e
Rework safe mode so we can trigger on all resets
2019-05-09 10:15:28 -07:00
Scott Shawcroft
837d3f57ee
Update on_next_reset
for new safe mode.
...
Fixes #1831
2019-05-08 15:23:40 -07:00
Terri Oda
a9b05d37d7
Make status light flash blue for incompatible mpy ( fixes #1369 )
2019-05-08 11:54:08 -07:00
Scott Shawcroft
796fc3f5ab
Update font location and shrink a bunch of builds
2019-04-12 15:25:48 -07:00
hexthat
a123cdc5ac
Update supervisor.mk
2019-04-12 12:55:55 -07:00
Radomir Dopieralski
1eede2d1e3
Allow overriding the font per board definition
...
This way boards with smaller screens can use smaller fonts
2019-04-12 12:09:53 +02:00
Scott Shawcroft
0f003ac5b8
Reorganize board busses into shared-bindings and shared-module.
2019-04-08 16:58:50 -07:00
Scott Shawcroft
7686f93ef4
Fix crash when getting board.SPI outside the VM
...
If one of the default pins was already in use it would crash.
The internal API has been refined to allow us to get the value
without causing an init of the singleton.
Fixes #1753
2019-04-05 19:06:37 -07:00
Dan Halbert
4f201964a6
Merge remote-tracking branch 'adafruit/master' into usb-disconnect
2019-04-05 11:11:31 -04:00
Dan Halbert
e5e9d2ba47
@hathach's changes; check cdc connected during string write
2019-04-04 18:58:35 -04:00
hathach
9d43a25d6e
update tinyusb to fix disconnect/suspend issue with #1681
2019-04-04 17:59:20 -04:00
Scott Shawcroft
6fcda1dec4
Support multi-byte values with Bitmap
...
It also corrects the behavior of single byte values.
Fixes #1744
2019-04-04 12:50:35 -07:00
Scott Shawcroft
ceb6f2e4fc
Rework flash flush so it preserves the cache
...
This should make filesystem writes quicker and cause less heap
churn.
2019-04-03 18:28:27 -07:00
Scott Shawcroft
a5520f8a3d
Set the terminal tilegrid NULL after free
...
Without this, a double free can occur when a display (and terminal)
is released and then a crash occurs. Upon a second release,
different memory is released (sometimes the heap). When this is
followed by an allocation for the flash cache, the cache can
overwrite the active heap causing crashes.
Fixes #1667
2019-04-03 15:24:15 -07:00
Scott Shawcroft
503642e794
Make status LED brightness change immediate.
...
Fixes #1516
2019-03-26 16:43:35 -07:00