lady ada
83de740d1f
kan prezz
2021-11-26 15:13:58 -05:00
lady ada
c56e33e6c2
woops fix SPI for rev A (will change in rev B to be correct)
2021-11-26 15:06:09 -05:00
lady ada
3c007ba094
re-add psram!
2021-11-26 13:50:12 -05:00
microDev
dddc282e34
update default sdkconfig and correct bootloader offset
2021-11-26 22:44:22 +05:30
microDev
554a62955b
Merge branch 'main' into espressif
2021-11-26 22:40:22 +05:30
lady ada
a9060ec383
cr nl
2021-11-26 00:27:54 -05:00
lady ada
0cf629bf99
on hey this proto doesnt have psram :(
2021-11-26 00:15:20 -05:00
lady ada
f06b21e46d
sneaky!
2021-11-25 23:50:33 -05:00
lady ada
a2c8daeb55
:(
2021-11-25 23:45:37 -05:00
lady ada
5e0d562cfe
y not?
2021-11-25 23:18:51 -05:00
Dan Halbert
95c09ac66f
Merge pull request #5610 from tannewt/rpi
...
Initial broadcom port for Raspberry Pi
2021-11-24 19:02:23 -05:00
Scott Shawcroft
e6a68cc4a7
Shrink 3 SAMD builds by disabling onewireio
2021-11-24 14:27:49 -08:00
Scott Shawcroft
ee5536386d
Merge remote-tracking branch 'adafruit/main' into rpi
2021-11-24 14:23:23 -08:00
Dan Halbert
2afe599811
Add missing include for zero2w pins.c
2021-11-24 09:43:06 -05:00
microDev
e5c125d153
update espressif makefile formatting
2021-11-24 18:14:54 +05:30
microDev
7ba5513f9a
update espressif port
...
- update esp-idf to v4.4
- add esp32s3 support
- add analogio on esp32c3
- disable rgbmatrix on all espressif soc
Co-authored-by: Scott Shawcroft <scott@adafruit.com>
Co-authored-by: Seon Rozenblum <seon@unexpectedmaker.com>
2021-11-24 18:01:34 +05:30
Scott Shawcroft
927a720de9
Fix I2C and feedback from Dan
2021-11-23 17:23:13 -08:00
gamblor21
f7df39ef88
Re-enable on microbit v2
2021-11-23 13:20:00 -06:00
Pierre Constantineau
81eed3ff4e
Merge branch 'adafruit:main' into seeduino-xiao-rp2040
2021-11-22 17:12:35 -06:00
Pierre Constantineau
401f1fadaf
Merge branch 'adafruit:main' into board-pykey87
2021-11-22 17:11:36 -06:00
Timon
a1052d5f73
Initial broadcom port for Raspberry Pi
...
This targets the 64-bit CPU Raspberry Pis. The BCM2711 on the Pi 4
and the BCM2837 on the Pi 3 and Zero 2W. There are 64-bit fixes
outside of the ports directory for it.
There are a couple other cleanups that were incidental:
* Use const mcu_pin_obj_t instead of omitting the const. The structs
themselves are const because they are in ROM.
* Use PTR <-> OBJ conversions in more places. They were found when
mp_obj_t was set to an integer type rather than pointer.
* Optimize submodule checkout because the Pi submodules are heavy
and unnecessary for the vast majority of builds.
Fixes #4314
2021-11-22 14:54:44 -08:00
gamblor21
5337e45411
Only enable if not disabled
2021-11-21 11:39:42 -06:00
gamblor21
6d412e20c4
Disabling from some boards
2021-11-20 14:04:49 -06:00
gamblor21
d063bf2675
Initial commit for IS31
2021-11-20 13:46:11 -06:00
Nathan Young
7afb4f1129
Temporary: Use same USB PID as the MicroMod STM32
2021-11-20 13:10:41 +01:00
Scott Shawcroft
3b7d2f1dc3
Merge pull request #5593 from anecdata/ap_extras
...
Set AP MAC address
2021-11-17 10:26:36 -08:00
Nathan Young
0ff3c0dac0
Board definition for SparkFun Thing Plus - STM32
2021-11-17 19:18:28 +01:00
Pierre Constantineau
da1ce6e80b
Merge branch 'adafruit:main' into board-pykey87
2021-11-16 15:53:42 -06:00
anecdata
c2a5ca2fa2
INVERT the sense of the I2C_POWER pin (active low)
...
I don't have the board to test, but this was reported and discussed on Discord.
2021-11-16 14:47:53 -06:00
anecdata
193e936807
like #5571 , but for AP
2021-11-16 12:21:50 -06:00
Dan Halbert
582a923ec9
Merge pull request #5579 from jepler/fix-optimization-same54
...
same54: Use the same optimization as other sam d5x/e5x
2021-11-16 08:32:08 -05:00
Dan Halbert
73430af78b
-O2 without -fno-inline-functions
2021-11-15 22:36:23 -05:00
Dan Halbert
bd22667eb5
Merge pull request #5571 from anecdata/set_mac
...
Set Station MAC address & validate connect SSID len
2021-11-15 20:33:54 -05:00
Pierre Constantineau
4f0fc1eb17
Merge branch 'adafruit:main' into board-pykey87
2021-11-15 16:45:15 -06:00
Scott Shawcroft
ba2f32e374
Merge pull request #5578 from jepler/disable-mkfs-fat32
...
oofatfs: Allow fat32 mkfs to be compiled out. optimize rainbowio & enable everywhere
2021-11-15 10:57:25 -08:00
Scott Shawcroft
894adc78e9
Merge pull request #5580 from jepler/litex-prototypes
...
litex: Enable -Werror=missing-prototypes
2021-11-15 10:22:59 -08:00
microDev
733bfbc10a
Merge branch 'main' into set_mac
2021-11-15 20:44:30 +05:30
Pierre Constantineau
ce7cd22116
updated pins.c to enable support for PyKey87
2021-11-14 21:56:18 -06:00
Pierre Constantineau
2c3557d4af
Merge branch 'adafruit:main' into seeduino-xiao-rp2040
2021-11-14 21:44:10 -06:00
Jeff Epler
edeb31f789
Fix remaining builds
2021-11-13 07:44:17 -06:00
Jeff Epler
59cb8e91b2
mimxrt1011: enable -Werror=missing-prototypes
2021-11-12 19:30:47 -06:00
Jeff Epler
535f4b3c54
mimxrt10xx: enable Werror
2021-11-12 19:30:43 -06:00
Jeff Epler
ac978969f7
litex: Enable -Werror=missing-prototypes
2021-11-12 19:13:51 -06:00
Jeff Epler
1039e1116b
same54: Use the same optimization as other sam d5x/e5x
...
It's likely that this is a relic of my early testing.
2021-11-12 18:54:56 -06:00
Jeff Epler
1cea871c70
enable rainbowio on unix coverage port
2021-11-12 17:31:14 -06:00
Jeff Epler
dfef5014ed
enable rainbowio with newly free space
2021-11-12 17:31:12 -06:00
Jeff Epler
12c95ee9e9
oofatfs: Allow fat32 mkfs to be compiled out
...
Saves 508 bytes
2021-11-12 17:31:12 -06:00
anecdata
31d45a3f32
fix old bug that was masking new bug
2021-11-12 16:27:13 -06:00
Dan Halbert
b9ecb0fdb4
Merge pull request #5575 from jepler/bitmaptools-on-host
...
Enable bitmaptools on the 'unix' build, 'coverage' variant
2021-11-12 16:16:53 -05:00
Scott Shawcroft
1d76be2dbd
Merge pull request #5574 from microDev1/traceback
...
Fix traceback object init
2021-11-12 09:30:57 -08:00
Scott Shawcroft
6a8c82d542
Merge pull request #5573 from ladyada/main
...
fix speed by not rotating
2021-11-12 09:27:46 -08:00
Jeff Epler
d55388a17d
Add bitmaptools to unix build
2021-11-12 10:47:18 -06:00
Jeff Epler
c6dbc7df3a
Add displayio bitmaps to unix build
2021-11-12 10:47:17 -06:00
microDev
b5dd8891e2
turn off onewireio
on feather_m0_adalogger
2021-11-12 20:02:22 +05:30
anecdata
e4f06f69cd
maybe fewer bytes
2021-11-11 23:23:52 -06:00
anecdata
bb8e9ef483
tweak exception messages (re-tested)
2021-11-11 21:54:41 -06:00
lady ada
104af801b7
fix speed by not rotating
2021-11-11 21:39:23 -05:00
anecdata
18f2019300
Set Station MAC address & validate connect SSID len
2021-11-11 17:04:35 -06:00
Limor "Ladyada" Fried
accadf9c25
Merge pull request #5570 from ladyada/main
...
add esp32s2 tft feather rev A
2021-11-11 17:06:34 -05:00
Scott Shawcroft
c1177662cd
Merge pull request #5537 from microDev1/monitor-mode
...
Add Monitor Mode
2021-11-11 10:10:39 -08:00
Dan Halbert
adac5ee596
Merge pull request #5563 from jepler/enable-error-missing-prototypes
...
Additional missing-prototypes fixes
2021-11-11 11:57:43 -05:00
lady ada
0ba47ed115
comma on
2021-11-11 11:43:44 -05:00
Jeff Epler
cd6599ce65
A few more missing-prototypes fixes
2021-11-11 08:42:30 -06:00
lady ada
bcec249091
displaaaaaaaaay
2021-11-10 23:13:22 -05:00
Dan Halbert
f058c5ec8c
fix kicksat-sprite
2021-11-10 23:05:06 -05:00
Jeff Epler
340d6b9213
more missing-prototypes fixes
2021-11-10 21:00:17 -06:00
Dan Halbert
e7d9dc323b
shrink kicksat-sprite, simmel, pyb_nano_v2
2021-11-10 21:12:41 -05:00
ladyada
d30c3ba4c6
nu board w tft
2021-11-10 17:23:29 -05:00
Dan Halbert
58485bc0b1
Switch SAMD51 and SAME51 back to -Os from -O2
...
The SAMx51 builds were getting very close to full on larger translations. This PR
adds 1400 bytes of enabled features, and pushed some over the edge.
2021-11-10 16:00:38 -05:00
Jeff Epler
ebc8359c67
disable missing-prototypes diagnostics in yet another tinyusb file
2021-11-10 12:47:55 -06:00
Jeff Epler
5cba23e04d
More missing-prototypes fixes
2021-11-10 12:22:07 -06:00
Jeff Epler
017b52c455
further raspberrypi fixes
2021-11-10 12:11:06 -06:00
microDev
a62675a81a
fix wifi reset and monitor deinit routine
2021-11-10 23:38:44 +05:30
Jeff Epler
9e799a7c74
-Werror=missing-prototypes for nRF
2021-11-10 11:26:54 -06:00
Jeff Epler
c9475adb00
Enable -Werror=missing-prototypes on espressif port
2021-11-10 11:07:45 -06:00
lady ada
afd035eb56
remove old nopsram version
2021-11-10 12:05:16 -05:00
Jeff Epler
621953c960
Additional missing-prototypes fixes
...
I think this correctly enables missing-prototypes in atmel-samd
and raspberrypi ports.
2021-11-10 10:55:53 -06:00
Dan Halbert
a69496b0e7
Merge pull request #5562 from microDev1/traceback
...
Refactor traceback handling
2021-11-10 11:53:35 -05:00
microDev
53a68f7ce6
turn off onewireio
on arduino_nano_33_iot
2021-11-10 20:25:46 +05:30
Jeff Epler
63fbf98186
Enable -Wmissing-prototypes for atmel-samd
2021-11-09 20:05:00 -06:00
Jeff Epler
20cbd5e635
Disable bitmapio on some boards where it no longer fits
2021-11-08 18:58:33 -06:00
Jeff Epler
cbfa41f238
Merge remote-tracking branch 'origin/main' into dither3
2021-11-08 16:46:36 -06:00
Scott Shawcroft
bb71f8c9b3
Merge pull request #5544 from jepler/alphablend
...
bitmaptools: add alphablend
2021-11-08 10:50:03 -08:00
Jeff Epler
6351de6ad1
espressif: Allow -DENABLE_JTAG=0 to force JTAG off
...
With the Kaluga devkit, the camera interferes with the JTAG function.
However, having DEBUG turned on e.g., to get extended debug information
on the UART debug connection remains useful.
Now, by arranging to add to CFLAGS += -DDEBUG -DENABLE_JTAG=0, this
configuration is easy to achieve.
2021-11-08 10:38:05 -06:00
EmergReanimator
94866fc1e3
Merge branch 'adafruit:main' into stm
2021-11-07 14:19:54 +01:00
EmergReanimator
a0074c36d8
Improved accuracy of common_hal_mcu_delay_us of STM port.
...
SysTick Current Value Register must be cleared before enabling.
2021-11-07 14:19:01 +01:00
Jeff Epler
6790f95953
Fix disabling of FRAMEBUFFERIO on atmel-samd
...
.. this needs to imply the disabling of RGBMATRIX too
2021-11-05 15:19:01 -05:00
Jeff Epler
4f62b540a2
Disable bitmaptools on thunderpack_v11
2021-11-05 15:18:41 -05:00
Dan Halbert
49207fba2c
Merge pull request #5549 from jepler/samd-watchdog-rounding
...
atmel-samd: Fix converting watchdog seconds to cycles
2021-11-05 14:39:59 -04:00
lady ada
02573676e7
add KB2040 and fix Trinkey QT2040 pid
2021-11-05 12:43:44 -04:00
Jeff Epler
43b593725b
atmel-samd: Fix converting watchdog seconds to cycles
...
It's intended that the actual timeout always be at least the requested
timeout. However, due to multiplying by the wrong factor to get from
seconds to cycles, a timeout request of e.g., 8.1s (which is less than
8.192s) would give an actual timeout of 8, not 16 as it should.
2021-11-05 11:40:08 -05:00
Jeff Epler
8e8c44afea
Merge remote-tracking branch 'origin/main' into alphablend
2021-11-05 11:24:51 -05:00
Jeff Epler
d532ad388b
disable framebufferio so bitmaptools can fit
2021-11-05 11:24:03 -05:00
Jeff Epler
334a9c85ce
Merge remote-tracking branch 'origin/main' into gifio
2021-11-04 20:22:00 -05:00
Scott Shawcroft
a08412420e
Merge pull request #5540 from jepler/continuous-capture
...
ParallelImageCapture: Add continuous capture on espressif
2021-11-04 13:33:32 -07:00
microDev
b435e7b56a
update wifi monitor
...
- rename loss method to lost
- add method to get queued packet count
Co-authored-by: anecdata <16617689+anecdata@users.noreply.github.com>
2021-11-04 16:21:18 +05:30
Scott Shawcroft
0dfb7a9a2d
Merge pull request #5541 from DavePutz/issue_5477
...
Corrected number of serial bytes returned
2021-11-03 16:53:15 -07:00
root
1e3215f4ee
Corrected number of serial bytes returned
2021-11-03 16:29:05 -05:00
Pierre Constantineau
f3eb9ea5e1
Merge branch 'adafruit:main' into seeduino-xiao-rp2040
2021-11-03 14:07:45 -06:00
Jeff Epler
a8614a61dc
ParallelImageCapture: Add continuous capture on espressif
...
By having a pair of buffers, the capture hardware can fill one buffer while
Python code (including displayio, etc) operates on the other buffer. This
increases the responsiveness of camera-using code.
On the Kaluga it makes the following improvements:
* 320x240 viewfinder at 30fps instead of 15fps using directio
* 240x240 animated gif capture at 10fps instead of 7.5fps
As discussed at length on Discord, the "usual end user" code will look like
this:
camera = ...
with camera.continuous_capture(buffer1, buffer2) as capture:
for frame in capture:
# Do something with frame
However, rather than presenting a context manager, the core code consists of
three new functions to start & stop continuous capture, and to get the next
frame. The reason is twofold. First, it's simply easier to implement the
context manager object in pure Python. Second, for more advanced usage, the
context manager may be too limiting, and it's easier to iterate on the right
design in Python code. In particular, I noticed that adapting the
JPEG-capturing programs to use continuous capture mode needed a change in
program structure.
The camera app was structured as
```python
while True:
if shutter button was just pressed:
capture a jpeg frame
else:
update the viewfinder
```
However, "capture a jpeg frame" needs to (A) switch the camera settings and (B)
capture into a different, larger buffer then (C) return to the earlier
settings. This can't be done during continuous capture mode. So just
restructuring it as follows isn't going to work:
```python
with camera.continuous_capture(buffer1, buffer2) as capture:
for frame in capture:
if shutter button was just pressed:
capture a jpeg frame, without disturbing continuous capture mode
else:
update the viewfinder
```
The continuous mode is only implemented in the espressif port; others
will throw an exception if the associated methods are invoked. It's not
impossible to implement there, just not a priority, since these micros don't
have enough RAM for two framebuffer copies at any resonable sizes.
The capture code, including single-shot capture, now take mp_obj_t in the
common-hal layer, instead of a buffer & length. This was done for the
continuous capture mode because it has to identify & return to the user the
proper Python object representing the original buffer. In the Espressif port,
it was convenient to implement single capture in terms of a multi-capture,
which is why I changed the singleshot routine's signature too.
2021-11-03 11:02:46 -05:00
Pierre Constantineau
a75473af96
update to EXTERNAL_FLASH_DEVICES to Puya P25Q16H
2021-11-02 20:52:58 -06:00
Dan Halbert
38c381633b
Merge pull request #5534 from jepler/add-rainbowio
...
Add rainbowio
2021-11-02 21:57:08 -04:00
Jeff Epler
63e01cde77
we decided not to add rainbowio on simmel
2021-11-02 19:01:05 -05:00
microDev
27b137f931
Merge branch 'main' into monitor-mode
2021-11-02 13:56:56 +05:30
microDev
4e207853f0
rearrange hostname
2021-11-02 12:33:11 +05:30
microDev
95172cf3ce
add monitor class
...
Co-authored-by: anecdata <16617689+anecdata@users.noreply.github.com>
2021-11-02 12:32:09 +05:30
Jeff Epler
18eaee9beb
reenable RAINBOWIO on these boards
2021-11-01 12:52:13 -05:00
Kong Wai Weng
36459c8a5a
Fixed whitespace issues.
2021-11-01 16:50:46 +08:00
Kong Wai Weng
e0332c1e49
Using 4x spaces instead of a tab.
2021-11-01 16:47:02 +08:00
Kong Wai Weng
b64ec36418
Using GP0 as default LED pin.
2021-11-01 16:43:13 +08:00
Kong Wai Weng
0034472778
Reversal of PR #4981 . GPIO25 on Maker Pi RP2040 is not connected to anything.
2021-11-01 16:26:40 +08:00
Scott Shawcroft
bf0bef9684
Split listdir entries across two packets
...
when the MTU of the BLE connection is smaller than the 28 bytes of
the header. (The smallest possible MTU is 20.)
Fixes #5511
2021-10-28 10:57:16 -07:00
Pierre Constantineau
ceeec6f1a0
updated USB PID to match one received from MengDu from Seeed
2021-10-27 08:10:47 -06:00
Pierre Constantineau
c9f834f3a1
added LEDs
2021-10-26 21:55:38 -06:00
Pierre Constantineau
0f9e3eed01
initial commit for Seeed Review
2021-10-26 21:48:11 -06:00
Dan Halbert
c61ab864da
Update ports/espressif/boards/adafruit_feather_esp32s2/board.c
2021-10-26 17:14:23 -04:00
Limor "Ladyada" Fried
037d893923
Update ports/espressif/boards/adafruit_feather_esp32s2/pins.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2021-10-26 15:55:18 -04:00
Limor "Ladyada" Fried
ccb6c5e5a9
Update ports/espressif/boards/adafruit_feather_esp32s2/mpconfigboard.h
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2021-10-26 15:55:11 -04:00
Limor "Ladyada" Fried
5e59fa65ec
Update ports/espressif/boards/adafruit_feather_esp32s2/mpconfigboard.mk
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2021-10-26 15:54:49 -04:00
Jeff Epler
b881aec4c5
disable gifio on meowbit
2021-10-26 14:24:11 -05:00
lady ada
613f314857
will delete later
2021-10-26 15:09:05 -04:00
lady ada
ba4e9797c7
add a nuuuuuboard
2021-10-26 15:05:10 -04:00
Jeff Epler
3e020a73a8
Disable gifio if no displayio & for small boards
...
Technically all gifio needs from displayio is the definition of
colorspaces, but let's just disable it for now.
2021-10-26 08:54:18 -05:00
Jeff Epler
8c7760b1a6
don't include gifio on samd21 boards
2021-10-26 08:54:18 -05:00
Jeff Epler
c34b6f757f
Implement gifio.GifWriter
...
This involves:
* Adding a new "L8" colorspace for colorconverters
* factoring out displayio_colorconverter_convert_pixel
* Making a minimal "colorspace only" version of displayio for the
unix port (testing purposes)
* fixing an error message
I only tested writing B&W animated images, with the following script:
```python
import displayio
import gifio
with gifio.GifWriter("foo.gif", 64, 64, displayio.Colorspace.L8) as g:
for i in range(0, 256, 14):
data = bytes([i, 255-i] * 32 + [255-i, i] * 32) * 32
print("add_frame")
g.add_frame(data)
# expected to raise an error, buffer is not big enough
with gifio.GifWriter("/dev/null", 64, 64, displayio.Colorspace.L8) as g:
g.add_frame(bytes([3,3,3]))
```
2021-10-26 08:54:18 -05:00
Dan Halbert
e868f1b1fe
Merge pull request #5510 from jepler/cmd25-v2
...
sdcardio: Use CMD25 across multiple writeblocks() calls
2021-10-26 08:46:28 -04:00
Scott Shawcroft
5315348b11
Merge pull request #5425 from maholli/samd-sleep
...
functioning samd deep sleep ('alarm.time' & 'alarm.pin')
2021-10-25 14:42:12 -07:00
Scott Shawcroft
de45382599
Merge pull request #5504 from solderparty/rp2040_stamp
...
Add the Solder Party RP2040 Stamp board
2021-10-25 14:08:04 -07:00
Jeff Epler
d999a88e57
Drop Adafruit_CircuitPython_SD where sdcardio is enabled
2021-10-25 16:07:27 -05:00
Dan Halbert
7377375e8d
Merge pull request #5506 from maholli/nvm-toml-fix
...
NVM toml fix (MRAM)
2021-10-25 16:50:43 -04:00
Dan Halbert
644272ee8b
Merge pull request #5509 from DavePutz/issue_5469
...
Added reset of pulsein buffer pointer
2021-10-25 16:35:24 -04:00
root
d2febfaf20
Added reset of pulsein buffer pointer
2021-10-24 20:46:18 -05:00
Max Holliday
339cf5ecf9
staying caught up with runtime changes
2021-10-24 15:49:14 -07:00
Max Holliday
e45fe3d778
Merge branch 'adafruit:main' into samd-sleep
2021-10-24 15:46:07 -07:00
Pierre Constantineau
3425bcc910
added startup delay multiplier
2021-10-24 14:20:07 -06:00
Max Holliday
adbff053ce
fix QSPI_SINGLE pin definitions
2021-10-24 12:37:30 -07:00
arturo182
915275e5fd
Add the Solder Party RP2040 Stamp board
2021-10-24 17:13:41 +02:00
Max Holliday
943f2b2085
remove interrupt_char.h
2021-10-23 09:01:40 -07:00
Pierre Constantineau
40326ab3f9
fix pre-commit
2021-10-22 18:35:38 -06:00
Pierre Constantineau
d6e9e9c3c9
added neopixel to mpconfigboard.h
2021-10-22 18:32:21 -06:00
Max Holliday
397b2f6bb5
pin alarm configures pins again before deep sleep
2021-10-21 10:03:46 -07:00
Max Holliday
e74a8e38fe
Merge branch 'adafruit:main' into samd-sleep
2021-10-21 09:52:55 -07:00
Scott Shawcroft
cf4597c6db
Merge pull request #5484 from dhalbert/samd21-pdmin-fix
...
fix SAMD21 PDMIn DMA event use
2021-10-20 09:47:13 -07:00
Dan Halbert
fc440e7609
move sercom_reset() etc. out of busio/SPI.c to busio/__init__.c
2021-10-19 15:18:32 -04:00
Jeff Epler
39795430a4
Apply suggestions from code review
...
Eliminates the "pet" function
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-10-19 13:25:28 -05:00
Dan Halbert
79ee78e690
fix SAMD21 PDMIn DMA event use
2021-10-19 13:18:14 -04:00
Jeff Epler
d38cf05e59
samd51: Add watchdog timer
2021-10-19 10:52:14 -05:00
Jeff Epler
9eebb3dbab
rotaryio: Add the ability to set the divisor
...
At present, Adafruit's rotary encoders all move 1 quadrature cycle per
detent, so we originally hard-coded division-by-4. However, other
encoders exist, including ones without detents, ones with 2 detents per
cycle, and others with 4 detents per cycle.
The new `divisor` property and constructor argument allows selecting
a divisor of 1, 2, or 4; with the default of 4 giving backward
compatibility.
The property is not supported (yet?) on espressif MCUs; it throws an
error if a value other than 4 is set.
2021-10-16 09:43:45 -05:00
Dan Halbert
23d2c96476
Merge pull request #5466 from jepler/merge-1.17
...
Merge 1.17
2021-10-15 23:34:31 -04:00
Jeff Epler
414c2f9da6
Always use python3
...
.. similar to https://github.com/micropython/micropython/pull/4448
2021-10-15 15:11:21 -05:00