Commit Graph

29669 Commits

Author SHA1 Message Date
Jeff Epler
b8f5def985
return to using python 3.x for builds 2022-11-13 09:26:49 -06:00
Dan Halbert
6e9909c65e
Merge pull request #7198 from CRCibernetica/crcibernetica-ideaboard
Add new board crcibernetica-ideaboard
2022-11-13 09:12:43 -05:00
root
43566dec5b allow inclusion of board while blocking build files 2022-11-13 12:13:32 +00:00
Dan Halbert
7659377ac8
Merge pull request #7202 from jepler/update-ulab-6 2022-11-12 20:20:13 -05:00
Dan Halbert
c96208902f
Merge pull request #7199 from MicroDev1/espressif
Enable `microcontroller.cpu.temperature` on esp32s3
2022-11-12 11:16:45 -05:00
Jeff Epler
e4d620f055
make whitespace match 2022-11-12 09:17:52 -06:00
Jeff Epler
78fc43baab
raspberrypi: Make port_idle_until_interrupt work
This needs thorough testing before it's merged, as we tried
and reverted this once before (#5341 and #5356).

I think that besides checking for tinyusb having "something to do",
the fact that `port_interrupt_after_ticks` and `port_disable_tick`
weren't implemented that was causing a secondary problem.

I've tested this on a pico w over reboot-cycles and ctrl-c-cycles,
with and without drive automounting, with and without serial repl open,
and on a power-only connection.

I didn't notice the problem reported in #5356 after merely implementing
port_idle_until_interrupt; but I did notice that sleeps in general would
take over-long until "something" (like writing to the USB drive) happened;
I think "something" was probably calling port_enable_tick(). When this
problem was happening, sleeps would take a lot longer; for instance,
`sleep(.001)` would take about 1/20s and `sleep(.1)` would take about 1/7s.
2022-11-12 09:16:41 -06:00
Dan Halbert
9e94d7e758
Merge pull request #7196 from dhalbert/rp2-pin-alarm-race
RP2040: ignore pin changes before deep sleep
2022-11-12 09:36:15 -05:00
MicroDev
512cda8b73
enable microcontroller.cpu.temperature on esp32s3 2022-11-12 10:03:00 +05:30
root
6c3b9b64da add crcibernetica-ideaboard 2022-11-12 03:22:15 +00:00
foamyguy
56be547754 fix type name 2022-11-11 20:18:42 -06:00
foamyguy
3c4d8c6926 implement self hidden property for vectorio shapes 2022-11-11 17:50:07 -06:00
Jeff Epler
b544a3920a
update ulab to 6.0.1 2022-11-11 14:44:13 -06:00
Dan Halbert
f76351d178
Merge pull request #7195 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-11-11 15:38:26 -05:00
Dan Halbert
983502d6e3 ignore pin changes before sleep 2022-11-11 15:31:49 -05:00
Jonny Bergdahl
b9ce2867a0
Translated using Weblate (Swedish)
Currently translated at 100.0% (995 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-11-11 19:49:47 +01:00
Wellington Terumi Uemura
d5ea4d8f2f
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (995 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-11-11 19:49:47 +01:00
Jeff Epler
5e77269845
Merge pull request #7135 from dronecz/main
Add Maker badge board
2022-11-11 10:38:48 -06:00
Jeff Epler
5d3484f61a
Update frozen modules 2022-11-11 08:57:06 -06:00
Jeff Epler
f5c637dc10
Add adafruit_pixelmap.PixelMap
.. a fast helper for animations. It is similar to and inspired by the
PixelMap helper in Adafruit LED Animation library, but with an extremely
fast 'paste' method for setting a series of pixels. This is a common
operation for many animations, and can give a substantial speed improvement.

It's named `adafruit_pixelmap` so that we can package a compatible version
in pure Python for systems that can't fit it in C in flash, or for
Blinka.

This is a proof of concept and can make a very fast comet animation:
```python
import time
import adafruit_pixelbuf
import adafruti_pixelmap
import board
import neopixel
from supervisor import ticks_ms
from adafruit_led_animation.animation.solid import Solid
from adafruit_led_animation import color

pixel_pin = board.GP0
pixel_num = 96

pixels = neopixel.NeoPixel(pixel_pin, pixel_num, brightness=1, auto_write=False, pixel_order="RGB")

evens = adafruit_pixelmap.PixelMap(pixels, tuple(range(0, pixel_num, 2)))
odd_indices = tuple((i, i+2) for i in range(1, pixel_num, 4))
print(odd_indices)
odds = adafruit_pixelbuf.PixelMap(pixels, odd_indices)
assert len(odds) == len(odd_indices)


comet_length = 16

comet1 = [color.calculate_intensity(color.GREEN, ((1+i) / comet_length) ** 2.4)
        for i in range(comet_length)]
comet2 = [color.calculate_intensity(color.PURPLE, ((1+i) / comet_length) ** 2.4)
        for i in range(comet_length)]

pos1 = 0
pos2 = 96//4

while True:
    evens.paste(comet1, pos1, wrap=True, reverse=False, others=0)
    pos1 = (pos1 + 1) % len(evens)

    odds.paste(comet2, pos2, wrap=True, reverse=True, others=0)
    pos2 = (pos2 - 1) % len(odds)
    pixels.show()

    m = ticks_ms()
    if m % 2000 > 1000:
        time.sleep(.02)
```
2022-11-11 07:54:33 -06:00
Bill Sideris
e6a4e2982f
Update ports/raspberrypi/common-hal/wifi/Radio.c
u32_t -> uint32_t

Co-authored-by: MicroDev <70126934+MicroDev1@users.noreply.github.com>
2022-11-11 14:40:47 +02:00
Bill Sideris
0bf9df232a
fix debug 2022-11-11 14:17:57 +02:00
dronecz
19df394437 Adding frozen modules 2022-11-10 21:14:01 +00:00
dronecz
a37c36c383
Merge branch 'adafruit:main' into main 2022-11-10 21:47:23 +01:00
Dan Halbert
aee6ceac33
Merge pull request #7182 from MicroDev1/patch
Update protomatter to latest commit
2022-11-10 10:31:21 -05:00
paul-1
11f1174658
picow: Change init to use country code routine.....place holder for future improvements to allow country code setting. 2022-11-10 17:24:09 +02:00
paul-1
851c2cd8cb
picow: Add channel setting when starting AP 2022-11-10 17:23:59 +02:00
paul-1
8fdb2df0bf
picow: enable dhcpserver for apmode. 2022-11-10 17:23:38 +02:00
Bill Sideris
25c0a0aca9
Merge branch 'adafruit:main' into picow-ap 2022-11-10 17:04:21 +02:00
Dan Halbert
d90bc1760f
Merge pull request #7188 from kylemccreery/pillbug
Add new board PillBug
2022-11-10 09:10:40 -05:00
Kyle McCreery
1f332e7007 Adding pillbug initial commit 2022-11-09 23:15:38 -05:00
MicroDev
5d974c35ee
update protomatter to latest commit 2022-11-10 08:31:27 +05:30
Dan Halbert
b8eda5a900
Merge pull request #7186 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-11-09 15:49:08 -05:00
Hosted Weblate
3910557605
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-11-09 20:20:06 +01:00
Hosted Weblate
2be3f26508
Merge remote-tracking branch 'origin/main' 2022-11-09 20:20:04 +01:00
Deleted User
98ee03259c
Translated using Weblate (French)
Currently translated at 99.2% (986 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2022-11-09 20:20:04 +01:00
Neradoc
b46997fbca
Translated using Weblate (French)
Currently translated at 99.2% (986 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2022-11-09 20:20:03 +01:00
Ettore Atalan
e390e71426
Translated using Weblate (German)
Currently translated at 99.7% (991 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/de/
2022-11-09 20:20:03 +01:00
Dan Halbert
e6936decac
Merge pull request #7169 from blues/pdmin
STM32L4 PDMIn support
2022-11-09 14:19:51 -05:00
Dan Halbert
0870e0f881
Merge pull request #7184 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-11-09 09:01:49 -05:00
Jonny Bergdahl
7a26443da8
Translated using Weblate (Swedish)
Currently translated at 100.0% (993 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-11-09 11:48:29 +01:00
Wellington Terumi Uemura
93b6772c65
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (993 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-11-09 11:48:29 +01:00
dronecz
11ce074318
Update mpconfigboard.mk 2022-11-08 23:43:13 +01:00
Matthew McGowan
97f693d2d8 docs(swan_r5): updated copyright notices 2022-11-08 14:18:54 -08:00
Matthew McGowan
843d6b42f9 formatting(swan_r5): lexicographically sorted the board module names in the swan_r5 makefile include [ci-skip][skip-ci]. Skip CI since this is a cosmetic change only. 2022-11-08 12:04:30 -08:00
Jeff Epler
7f36a365cf
delay 100us for analog voltage to stabilize
.. otherwise, depending on the prior state of the pin as a digital
input, the value read could be 20% low.
2022-11-08 10:43:14 -06:00
Jeff Epler
09f6919c93
Add ability to read VOLTAGE_MONITOR on Pico W
Because this must be treated like an in-use pin for all other purposes,
unfortunately a special case must be added in shared-bindings.

Multiple AnalogIn objects for VOLTAGE_MONITOR can be created (because
in use tracking isn't working) but this causes no harm.

Testing performed: Read the monitor, then imported wifi. When the
pin state was insufficiently restored, the second step would fail
with debug messages about do_ioctl timeout.

```
import analogio, board
a = analogio.AnalogIn(board.VOLTAGE_MONITOR)
print(a.value)
import wifi
```

Closes: #7020
2022-11-08 09:37:15 -06:00
Dan Halbert
1853f49139
Merge pull request #7166 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-11-07 22:48:46 -05:00
dronecz
28e4834da8
Merge branch 'adafruit:main' into main 2022-11-08 01:02:46 +01:00
Hosted Weblate
3dd9416c3f
Merge remote-tracking branch 'origin/main' 2022-11-08 00:33:18 +01:00