Commit Graph

15719 Commits

Author SHA1 Message Date
warriorofwire 206d0e598a Add vectorio: for drawing shapes
vectorio builds on m4 express feather

Concrete shapes are composed into a VectorShape which is put into a displayio Group for display.

VectorShape provides transpose and x/y positioning for shape implementations.

Included Shapes:

* Circle
  - A radius; Circle is positioned at its axis in the VectorShape.
  - You can freely modify the radius to grow and shrink the circle in-place.

* Polygon
  - An ordered list of points.
  - Beteween each successive point an edge is inferred.  A final edge closing the shape is inferred between the last
    point and the first point.
  - You can modify the points in a Polygon.  The points' coordinate system is relative to (0, 0) so if you'd like a
      top-center justified 10x20 rectangle you can do points [(-5, 0), (5, 0), (5, 20), (0, 20)] and your VectorShape
      x and y properties will position the rectangle relative to its top center point

* Rectangle
  A width and a height.
2020-05-09 15:38:22 -07:00
Dan Halbert 90bd931808
Merge pull request #2870 from kattni/pixelbuf-colorwheel-fix
Fix colorwheel RGB order and update name
2020-05-09 15:01:39 -04:00
Dan Halbert 8d00d99ca0
Shrink hallowing_m0_express to fit ko build 2020-05-08 22:51:21 -04:00
Kattni Rembor a83d1d7b4b Update wheel to colorwheel and fix RGB order. 2020-05-08 14:44:41 -04:00
Kattni Rembor 37e5ff7757 Update colorwheel from GRB to RGB. 2020-05-08 13:25:52 -04:00
Dan Halbert 6a5ab57c18
Merge pull request #2867 from jepler/stm32f4xx-rgbmatrix
Fix build after #2831 (stm32f4xx rgbmatrix) broke it
2020-05-08 11:28:17 -04:00
Jeff Epler 182ae10080 Fix build after #2831 (stm32f4xx rgbmatrix) broke it 2020-05-07 18:32:50 -05:00
Scott Shawcroft 7eb60b62b8
Merge pull request #2862 from spkuehl/docs-fix-RTC-typo
Documentation Fix: Typo in RTC.
2020-05-07 11:35:32 -07:00
spkuehl af55af216a Fix type in RTC documentation. 2020-05-06 14:11:11 -05:00
Scott Shawcroft 241ef52841
Merge pull request #2823 from xobs/crypto-aes
aes: add initial AES module
2020-05-06 10:54:57 -07:00
Scott Shawcroft c3b3eb4c21
Merge pull request #2831 from jepler/rgbmatrix-stm
stm: enable RGBMatrix
2020-05-06 08:35:25 -07:00
Scott Shawcroft 4519ddebeb
Merge pull request #2841 from hierophect/mimxrt-spi-oneway
mimxrt10xx: add one-directional SPI
2020-05-06 08:32:21 -07:00
Sean Cross b9f62ab14a locale: add translations for aesio
This is the result of running `make translate` after creating aesio.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-06 17:47:44 +08:00
Sean Cross b168784fa0 aesio: add basic AES encryption and decryption
This adds initial support for an AES module named aesio.  This
implementation supports only a subset of AES modes, namely
ECB, CBC, and CTR modes.

Example usage:

```
>>> import aesio
>>>
>>> key = b'Sixteen byte key'
>>> cipher = aesio.AES(key, aesio.MODE_ECB)
>>> output = bytearray(16)
>>> cipher.encrypt_into(b'Circuit Python!!', output)
>>> output
bytearray(b'E\x14\x85\x18\x9a\x9c\r\x95>\xa7kV\xa2`\x8b\n')
>>>
```

This key is 16-bytes, so it uses AES128.  If your key is 24- or 32-
bytes long, it will switch to AES192 or AES256 respectively.

This has been tested with many of the official NIST test vectors,
such as those used in `pycryptodome` at
39626a5b01/lib/Crypto/SelfTest/Cipher/test_vectors/AES

CTR has not been tested as NIST does not provide test vectors for it.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-06 17:40:06 +08:00
Jeff Epler 90625d169a
Merge pull request #2858 from weblate/weblate-circuitpython-master
Translations update from Weblate
2020-05-05 15:25:59 -05:00
Jeff Epler 2e29f7f141
Translated using Weblate (French)
Currently translated at 65.1% (477 of 732 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/fr/
2020-05-05 22:24:11 +02:00
Dan Halbert 4e786fa63a
Merge pull request #2835 from jepler/weblate-circuitpython-circuitpython-master
Translations update from Weblate
2020-05-05 15:16:09 -04:00
Lucian Copeland a1330747e8 text fixes, postpone warning disable 2020-05-05 12:46:30 -04:00
hierophect c311b5c002
Merge pull request #2842 from hierophect/stm32-h7-displayio
STM32: Add displayio to F7/H7
2020-05-05 12:37:08 -04:00
Jeff Epler fdd0deb0e1 Translated using Weblate (German)
Currently translated at 67.9% (495 of 729 strings)

Translation: CircuitPython/circuitpython-master
Translate-URL: https://later.unpythonic.net/projects/circuitpython/circuitpython-master/de/
2020-05-05 15:50:28 +00:00
Tannewt c1eb33347f Translated using Weblate (English)
Currently translated at 2.9% (21 of 723 strings)

Translation: CircuitPython/circuitpython-master
Translate-URL: https://later.unpythonic.net/projects/circuitpython/circuitpython-master/en_X@pirate/
2020-05-05 15:50:28 +00:00
Weblate Admin e8ad37c7ea Translated using Weblate (French)
Currently translated at 65.8% (476 of 723 strings)

Translation: CircuitPython/circuitpython-master
Translate-URL: https://later.unpythonic.net/projects/circuitpython/circuitpython-master/fr/
2020-05-05 15:50:28 +00:00
Weblate Admin a129be22b8 Translated using Weblate (French)
Currently translated at 65.8% (476 of 723 strings)

Translation: CircuitPython/circuitpython-master
Translate-URL: https://later.unpythonic.net/projects/circuitpython/circuitpython-master/fr/
2020-05-05 15:50:28 +00:00
Scott Shawcroft f40db45009
Merge pull request #2799 from dhalbert/ringbuf-fixes
Ringbuf: fix PacketBuffer; clean up ringbuf implementation and use
2020-05-05 08:50:22 -07:00
Dan Halbert e1366d78b1 trivial change to force rebuild 2020-05-04 23:05:47 -04:00
Dan Halbert b23ff41606 merge from upstream and make translate again (sv.po) 2020-05-04 20:38:29 -04:00
Dan Halbert 0105acb231 Merge remote-tracking branch 'adafruit/master' into ringbuf-fixes 2020-05-04 20:37:32 -04:00
Dan Halbert c0af9f67b5 make translate 2020-05-04 19:52:24 -04:00
Dan Halbert b7836aeac6 address review comments 2020-05-04 19:51:08 -04:00
Jeff Epler dd216b6cad
Merge pull request #2851 from jepler/add-swedish-translation
Create empty Swedish (sv) translation
2020-05-04 18:45:59 -05:00
Jeff Epler fd383c8047 actions: build-riscv: switch to checkout@v2 2020-05-04 17:15:14 -05:00
Jeff Epler 6957aaf4d0 Create empty Swedish (sv) translation 2020-05-04 16:45:00 -05:00
Scott Shawcroft 54eb6d39e4
Merge pull request #2847 from bd34n/external-flash-fix
.../external_flash.c: Don't attempt to issue CMD_READ_STATUS2 for devices with only a single_status_byte.
2020-05-04 14:44:10 -07:00
Dan Halbert bae7a5e433 make translate again 2020-05-04 17:26:59 -04:00
Dan Halbert d6c6f9f4f0 add PacketBuffer .incoming_ and .outgoing_packet_length 2020-05-04 15:59:45 -04:00
Dan Halbert 4d7e341e44
Merge pull request #2844 from xobs/add-nrf-pca10100
nrf: add pca10100
2020-05-04 10:51:01 -04:00
Dan Halbert e1b5ae36bd
Merge pull request #2849 from simmel-project/simmel-enable-hid
nrf: simmel: enable CIRCUITPY_USB_HID
2020-05-04 10:48:53 -04:00
Sean Cross b128399d1e nrf: simmel: enable CIRCUITPY_USB_HID
Simmel had USB HID disabled in order to save space.  However, the board
configuration did not set USB_DEVICES, causing it to inherit the default
device bouquet of MSC,CDC,MIDI,HID.  This in turn caused HID to be included
in the USB Configuration Descriptor.

For some reason, this was not a problem in an earlier version of tinyusb or
circuitpython.  However, in the most recent version this has rightfully
caused asserts to appear during configuration.

Re-enable USB_HID for now, as it doesn't add too much in terms of space.
We may disable it again later on if we become pressed for space.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-04 15:37:53 +08:00
Sean Cross cb4fc894d7 nrf: add pca10100
This is the nRF52833-DK board.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-04 15:07:49 +08:00
Brian Dean 28179a3aaf .../external_flash.c: Don't attempt to issue CMD_READ_STATUS2 for
devices with only a single_status_byte.
2020-05-03 18:33:01 -04:00
Lucian Copeland 61b0994631 Fix flag typo 2020-05-01 14:46:06 -04:00
Scott Shawcroft 242063e1d0
Merge pull request #2838 from spkuehl/UART_sharedbinding_fix
Fix #2814 Corrected UART output.
2020-05-01 11:05:24 -07:00
Lucian Copeland bc581fbdfb Add-unidirectional-SPI 2020-05-01 13:15:38 -04:00
spkuehl a3a2dd0f70 Corrected UART output. 2020-04-30 19:14:51 -05:00
Scott Shawcroft b3b6a64ed7
Merge pull request #2685 from tannewt/lower_power
Lower power by using the Wait for Interrupt (WFI) instruction
2020-04-30 15:24:03 -07:00
Scott Shawcroft a863b0a349
Fix openmv_h7 build 2020-04-30 13:46:12 -07:00
Scott Shawcroft 1ca90572f1
Merge remote-tracking branch 'adafruit/master' into lower_power 2020-04-30 13:25:31 -07:00
hierophect 10c5bf666e
Merge pull request #2836 from hierophect/stm32-openmv-pid
STM32: Add correct PID for the OpenMV
2020-04-30 16:07:34 -04:00
Lucian Copeland 06b62721b3 Increase H7 filesystem size 2020-04-30 15:49:17 -04:00
Scott Shawcroft 74a2d0944a
Merge pull request #2834 from Teknikio/fix/bluebird_pinout
Update teknikio bluebird pin assignments
2020-04-30 11:50:02 -07:00