Skip to content

Support for Pimoroni board with IO Expanders #7440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
c3f50bb
Initial Yukon bindings
ZodiusInfuser Jan 10, 2023
3464972
Added TCA Pin object
ZodiusInfuser Jan 10, 2023
7c49200
Updated Yukon pinout
ZodiusInfuser Jan 10, 2023
2f78d23
Driver functions for TCA, and DigitalInOut/FourWire updates
ZodiusInfuser Jan 13, 2023
004afbc
Reduced transactions to single bytes to speed up comms
ZodiusInfuser Jan 17, 2023
2fa0c7e
Cleaned up Yukon bootup, and general improvements
ZodiusInfuser Jan 17, 2023
9a87742
Remove unnecessary include
ZodiusInfuser Jan 19, 2023
4257062
Moved TCA pins from microcontroller.pin to TCA module
ZodiusInfuser Jan 19, 2023
f31d16c
Move TCA pin defines to own binding and added some handy macros
ZodiusInfuser Jan 19, 2023
851556e
Move TCA pin defines out of peripheral
ZodiusInfuser Jan 19, 2023
6eb396b
Merge branch 'main' into yukon
ZodiusInfuser Jan 19, 2023
241638e
Re-add missing makefile command
ZodiusInfuser Jan 19, 2023
494a203
Elevate new arg_name to common_hal_digitalio
ZodiusInfuser Jan 19, 2023
10a79f6
Yukon linting fixes
ZodiusInfuser Jan 19, 2023
dc55049
Fixed incorrect pins discovered whilst testing
ZodiusInfuser Jan 24, 2023
63b5c3d
Added TCA function to set and clear multiple pins in a single operati…
ZodiusInfuser Jan 30, 2023
137361b
Only send TCA changes to output and direction if different from read …
ZodiusInfuser Jan 30, 2023
7055485
Fix for upper byte not getting handled correctly
ZodiusInfuser Jan 30, 2023
13ef8f0
Switched to local memory for reading state, and added faster method f…
ZodiusInfuser Jun 27, 2023
b8b7c2e
Merge branch 'main' into yukon
ZodiusInfuser Jun 27, 2023
642b679
Updated to final USB PID
ZodiusInfuser Jun 27, 2023
7fbfbc6
Formatting fix
ZodiusInfuser Jun 27, 2023
8b186c6
Added frozen modules for motors and LEDs
ZodiusInfuser Jul 11, 2023
76655f1
Added ID to each yukon slot
ZodiusInfuser Jul 23, 2023
d856ebf
Merge branch 'adafruit:main' into yukon
ZodiusInfuser Jul 23, 2023
bf0ff38
Fix TCA local memory
ZodiusInfuser Jul 24, 2023
fba84d6
Big tidy up of TCA driver
ZodiusInfuser Jul 24, 2023
acd25b2
Fix default config for tca
ZodiusInfuser Jul 24, 2023
55ca342
Removed redundant state writes
ZodiusInfuser Jul 25, 2023
827862e
Updated pins for new hardware, and addressed a issued raised in PR
ZodiusInfuser Sep 14, 2023
80b098b
Merge branch 'main' into yukon
ZodiusInfuser Sep 14, 2023
137d74d
Fixed issued flagged by elevated warnings
ZodiusInfuser Sep 14, 2023
34b3479
Included TCA mask functions for config and polarity
ZodiusInfuser Sep 14, 2023
1be2b3b
Added a new argcheck against two types
ZodiusInfuser Sep 15, 2023
3d8ce0a
Switched to argchecks and added python stub comments
ZodiusInfuser Sep 15, 2023
0c16ad2
Fix type in python stub
ZodiusInfuser Sep 15, 2023
a65416a
prefixed TCA functions with common_hal
ZodiusInfuser Sep 15, 2023
fc79d9e
Copied TCA9555 implementation from raspberrypi to shared folders
ZodiusInfuser Sep 15, 2023
6e5edcc
Removed old TCA9555 files
ZodiusInfuser Sep 15, 2023
b4a2eae
Undo locale changes
ZodiusInfuser Sep 15, 2023
3d18182
Cleaned up includes
ZodiusInfuser Sep 15, 2023
9353cfb
Update company name in copyright
ZodiusInfuser Sep 15, 2023
17955c8
Updated Yukon pin constant, for consistency
ZodiusInfuser Sep 25, 2023
78e76c4
Changed initial IO Expander output state
ZodiusInfuser Sep 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions locale/circuitpython.pot
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,17 @@ msgid "%q must be array of type 'h'"
msgstr ""

#: ports/raspberrypi/bindings/cyw43/__init__.c py/argcheck.c py/objexcept.c
#: ports/raspberrypi/bindings/tca9555r/__init__.c py/argcheck.c py/objexcept.c
#: shared-bindings/canio/CAN.c shared-bindings/digitalio/Pull.c
#: shared-module/synthio/Synthesizer.c
msgid "%q must be of type %q or %q, not %q"
msgstr ""

#: ports/raspberrypi/bindings/tca9555r/__init__.c
msgid "%q must be of type %q, %q or %q, not %q"
msgstr ""

#: ports/raspberrypi/bindings/tca9555r/__init__.c py/argcheck.c py/obj.c
#: py/argcheck.c py/obj.c py/objstrunicode.c shared-module/synthio/__init__.c
msgid "%q must be of type %q, not %q"
msgstr ""
Expand Down Expand Up @@ -2822,6 +2828,10 @@ msgstr ""
msgid "chars buffer too small"
msgstr ""

#: ports/raspberrypi/bindings/tca9555r/__init__.c
msgid "chip can only be 0 to %q"
msgstr ""

#: py/modbuiltins.c
msgid "chr() arg not in range(0x110000)"
msgstr ""
Expand Down Expand Up @@ -3483,6 +3493,10 @@ msgstr ""
msgid "map buffer too small"
msgstr ""

#: ports/raspberrypi/bindings/tca9555r/__init__.c
msgid "mask only supports 16 bits"
msgstr ""

#: py/modmath.c shared-bindings/math/__init__.c
msgid "math domain error"
msgstr ""
Expand Down Expand Up @@ -3863,6 +3877,10 @@ msgstr ""
msgid "parameters must be registers in sequence r0 to r3"
msgstr ""

#: ports/raspberrypi/bindings/tca9555r/__init__.c
msgid "pin in list or tuple must be of type %q, not %q"
msgstr ""

#: shared-bindings/bitmaptools/__init__.c
msgid "pixel coordinates out of bounds"
msgstr ""
Expand Down Expand Up @@ -4043,6 +4061,10 @@ msgstr ""
msgid "start/end indices"
msgstr ""

#: ports/raspberrypi/bindings/tca9555r/__init__.c
msgid "state only supports 16 bits"
msgstr ""

#: shared-bindings/random/__init__.c
msgid "stop not reachable from start"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion ports/raspberrypi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ SRC_CYW43 :=
SRC_LWIP :=
endif

ifeq ($(CIRCUITPY_TCA9555R),1)
SRC_TCA9555R := \
$(wildcard bindings/tca9555r/*.c)
else
SRC_TCA9555R :=
endif

INC += \
-I. \
-Ilwip_inc \
Expand Down Expand Up @@ -235,7 +242,7 @@ SRC_SDK := \
$(SRC_SDK_CYW43) \

SRC_SDK := $(addprefix sdk/, $(SRC_SDK))
$(patsubst %.c,$(BUILD)/%.o,$(SRC_SDK) $(SRC_CYW43)): CFLAGS += -Wno-missing-prototypes -Wno-undef -Wno-unused-function -Wno-nested-externs -Wno-strict-prototypes -Wno-double-promotion -Wno-sign-compare -Wno-unused-variable -Wno-strict-overflow -Ilib/cyw43-driver
$(patsubst %.c,$(BUILD)/%.o,$(SRC_SDK) $(SRC_CYW43) $(SRC_TCA9555R)): CFLAGS += -Wno-missing-prototypes -Wno-undef -Wno-unused-function -Wno-nested-externs -Wno-strict-prototypes -Wno-double-promotion -Wno-sign-compare -Wno-unused-variable -Wno-strict-overflow -Ilib/cyw43-driver

SRC_C += \
boards/$(BOARD)/board.c \
Expand All @@ -256,6 +263,7 @@ SRC_C += \
lib/tinyusb/src/portable/raspberrypi/rp2040/rp2040_usb.c \
mphalport.c \
$(SRC_CYW43) \
$(SRC_TCA9555R) \
$(SRC_LWIP) \


Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy