Commit Graph

27687 Commits

Author SHA1 Message Date
Guy Dupont
02ec1cebf6
Fix pin mapping for thing plus 2040
GPIO 26 was mapped to GPIO 28
2022-05-05 21:11:32 -04:00
Dan Halbert
03b1a0284e
Merge pull request #6352 from billvanleeuwen424/removeDuplicateInclude
Removed duplicate include, fixes issue #6278
2022-05-04 21:47:17 -04:00
Dan Halbert
27cbf1321c
Merge pull request #6350 from dhalbert/samd-SRC_C-conditionals
Compile more SAMD things conditionally
2022-05-04 21:46:26 -04:00
billvanleeuwen424
76040a9380 removed duplicate include per issue 6278 2022-05-04 14:57:37 -04:00
Dan Halbert
b71ea29a8b
Merge pull request #6330 from KurtE/rp2040_uart_rs485
[RP2040] Allow any GPIO pin for RS485 direction pin
2022-05-04 13:32:36 -04:00
Dan Halbert
a7ec8b02e9
Merge pull request #6328 from KurtE/mixrt_uart_rs485
[mimxrt (teensy) Allow Any GPIO pin for RS485 pin
2022-05-04 13:30:09 -04:00
Dan Halbert
75bfcb3630 add caveat about software RS485 implementations 2022-05-04 13:05:41 -04:00
Dan Halbert
98ae047525 Compile more SAMD things conditionallly 2022-05-04 11:41:48 -04:00
Jeff Epler
56ed0b001e
Merge pull request #6347 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-05-04 08:46:36 -06:00
Hosted Weblate
e52fd0871b
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2022-05-04 04:43:56 +02:00
Dan Halbert
ce959a9af4
Merge pull request #6342 from dhalbert/pin-hash
make Pin hashable
2022-05-03 22:43:46 -04:00
Dan Halbert
e25e177a6f
Merge pull request #6343 from dhalbert/missing-board-LED
add board.LED to Metro M4 AirLift LIte and PyRuler
2022-05-03 19:17:04 -04:00
Dan Halbert
e5c9f3b320
Merge pull request #6341 from tekktrik/doc/add-time-module-link
Link to CPython docs for subset modules
2022-05-03 19:16:50 -04:00
Dan Halbert
68acd14342 use generic hash routine where possible 2022-05-03 19:11:54 -04:00
Dan Halbert
4da73ac0f1
Merge pull request #6344 from dhalbert/adabot-website-pr
run circuitpython.org website PR action with adafruit-adabot instead of adafruit-blinka
2022-05-03 18:57:29 -04:00
Alec Delaney
024ab1974b Fix typo 2022-05-03 16:42:40 -04:00
KurtE
6378343bb3 As I mentioned in issue #6332,
there return of a read operation that times out with no data received
is inconsistent:
```
Adafruit CircuitPython 7.3.0-beta.1-31-g73f6b4867-dirty on 2022-04-30; Adafruit Feather RP2040 with rp2040
>>>
>>> import board, busio
>>> print(board.UART().read(5))
None

Adafruit CircuitPython 6.3.0 on 2021-06-01; FeatherS2 with ESP32S2
>>> import board,busio
>>> print(board.UART().read(5))
None

Adafruit CircuitPython 7.3.0-beta.1 on 2022-04-07; Adafruit Feather STM32F405 Express with STM32F405RG
>>> import board, busio
>>> print(board.UART().read(5))
None

Adafruit CircuitPython 7.3.0-beta.1-31-g73f6b4867-dirty on 2022-04-28; Teensy 4.1 with IMXRT1062DVJ6A
>>> import board, busio
>>> print(board.UART().read(5))
b''
```

Since I have a PR on this file anyway, I thought I would put in the change to make it consistent
with the other 3 board types I tried.  Can not say about any of the others.
2022-05-03 13:39:49 -07:00
Dan Halbert
814640e25a run circuitpython.org website PR action with adafruit-adabot instead of adafruit-blinka 2022-05-03 16:29:54 -04:00
Dan Halbert
b181caaefc add board.LED to Metro M4 AirLift LIte and PyRuler 2022-05-03 16:08:01 -04:00
Dan Halbert
9717fd235d make Pin hashable 2022-05-03 15:28:42 -04:00
Alec Delaney
24fb138311 Use shortcut "directive" for subset note 2022-05-03 14:56:12 -04:00
Alec Delaney
bbc29e84a7
Add os, "socket", atexit, ssl, struct, traceback, math links 2022-05-03 12:31:20 -06:00
Alec Delaney
de7a90ab00
Add link to CPython os module 2022-05-03 14:00:52 -04:00
Alec Delaney
5bd8fa6842
Add link to CPython random module 2022-05-03 13:59:13 -04:00
Alec Delaney
664a92c2df
Add link to CPython math module 2022-05-03 13:57:22 -04:00
Dan Halbert
a7c074b8ff
Merge pull request #6339 from jepler/servo2040-neopixel-name
Add NEOPIXEL pin
2022-05-03 13:54:41 -04:00
Alec Delaney
2457b2bdf4
Link to CPython docs for time module 2022-05-03 13:49:00 -04:00
Jeff Epler
7d7986b041
Add NEOPIXEL pin
Closes: #6307
2022-05-03 12:21:15 -05:00
Limor "Ladyada" Fried
bf0e1fafa9
Merge pull request #6333 from todbot/main
fix qtpy_esp32s3_nopsram neopixel pins
2022-05-02 18:45:28 -04:00
Tod Kurt
7e622c3ff7 mpconfigboard.h also needs neopixel tweak 2022-05-02 13:23:55 -07:00
Tod Kurt
5d4e964de0 fix qtpy_esp32s3_nopsram neopixel pins 2022-05-02 13:04:05 -07:00
Limor "Ladyada" Fried
8beb908d90
Merge pull request #6329 from tekktrik/personal/mp3decoder-docs
Add note about memory usage recommendation to MP3Decoder
2022-04-30 21:13:20 -04:00
KurtE
1fad381513 [RP2040] Allow any GPIO pin for RS485 direction pin
As I mentioned in issue #6310 while investigating that the Teensy port
did not support RS485_dir pin on normal GPIO pins, I found that it
was not implemented either as well on some other ports.

So was curious to implement it for RP2040 using same approach as I did
for the MIMXRT in the Pull Request #6328

That is I setup the specified pin as a normal GPIO pin in output mode
and then when you do a write operation it sets the GPIO pin logically
high, and when the write completes I set it logically low.

Note: knowing when I can set it low can be tricky, as you need to make
sure the full output has completed otherwise the data will be corrupted.

I am using:         uart_tx_wait_blocking(self->uart);
Which looks like it is supposed to wait until the busy status is no
longer set, which the Reference manual mentioned, but this is leaving
the line logically set longer than I would like.

however I have tried running it with my hacked up version of the
Python Robotis DynamixelSDK and was able to talk to some AX servos.

I did have to change the library slightly for the RP2040, as the
library was erroring out when you did something like uart.read(5)
and it timed out without receiving anything.  The RP2040 returned
None whereas I think the Teensy returned an empty set, which is what
it looks like the PySerial original code expects.

Not sure if anyone is interested in this, but thought i would
put it out as PR and see.
2022-04-30 14:31:08 -07:00
Alec Delaney
92aeabfe3a Update note in MP3Decoder 2022-04-30 15:18:05 -06:00
Alec Delaney
3d145af587 Add note about memory usage for MP3Decoder 2022-04-30 15:11:00 -06:00
Mark
b598ec0ddb
Merge pull request #6324 from tekktrik/doc/add-watchdog-timeout-docs
Add documentation for watchdog.WatchDogTimeout
2022-04-29 23:35:36 -05:00
Alec Delaney
9a23923b2d Add documentation for watchdog.WatchDogTimeout 2022-04-29 11:41:22 -06:00
Dan Halbert
816a26e8b7
Merge pull request #6321 from dhalbert/samd21-ticks-for-display
Preserve ticks for displays across VMs
2022-04-28 09:37:21 -04:00
Mark
02280b81ef
Merge pull request #6320 from mwisslead/pulseio_pulsin_buffer_overread
Fix PulseIn buffer overread in popleft #6318
2022-04-28 07:42:44 -05:00
Michael Wisslead
e63a327107 Bound PulseIn start indexes to maxlen. 2022-04-28 02:28:34 +00:00
Dan Halbert
90b78fe25f
Merge pull request #6319 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-04-27 22:27:26 -04:00
Dan Halbert
b25d810af9 Preserve ticks for displays across VMs 2022-04-27 20:06:47 -04:00
KurtE
73f6b48676 [mimxrt (teensy) Allow Any GPIO pin for RS485 pin
The existing code was setup that allowed you to specify an RTS
pin to be used as an RS485 direction pin, however there are no
RTS pins that are exposed on any of the Teensy 4.x boards.

Instead Arduino code base allowed you to specify any GPIO pin to
work instead.  So I added the code in to facilitate this.

In addition the alternative code to wrap your own GPIO pin set high and low
around call(s) to uart.write() will not currently work, unless maybe you
fudge it and add your own delays as the write will return after the last
byte was pushed onto the UART’s hardware FIFO queue and as such if you
then immediately set the IO pin low, it will corrupt your output stream.

The code I added detects that you are setup to use the RS485 pin and
before it returns will wait for the UART’s Transfer complete status flag
to be set.
2022-04-27 11:26:08 -07:00
Wellington Terumi Uemura
dd5288127c
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1056 of 1056 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-04-27 20:11:12 +02:00
Dan Halbert
862188d2ee
Merge pull request #6316 from dhalbert/spacing-fix
update frozen libraries and remove stray space
2022-04-26 20:14:46 -04:00
Dan Halbert
b7541088f4 shrink circuitplayground_express_crickit 2022-04-26 17:51:47 -04:00
Dan Halbert
7a77aae4be shrink feather_m0_supersized 2022-04-26 16:52:43 -04:00
Dan Halbert
9ffd1db331
Merge pull request #6315 from dhalbert/huffman-is-in-tools
huffman is a submodule and does not need to be in requirements-dev.txt
2022-04-26 14:46:34 -04:00
Dan Halbert
e85ea4f4bb update frozen libraries 2022-04-26 14:43:48 -04:00
Dan Halbert
6b25ccf1a4 remove stray space 2022-04-26 14:26:42 -04:00