Επεκτατήρας 3 καλωδίων#
Εισαγωγή#
Η επέκταση 3 καλωδίων επιτρέπει στο EXP Brain να υποστηρίζει περισσότερες συσκευές 3 καλωδίων προσθέτοντας 8 επιπλέον θύρες μέσω μίας μόνο σύνδεσης Smart Port.

This page uses expander as the example 3-Wire Expander name. Replace it with your own configured name as needed.
Παρακάτω είναι μια λίστα με τις διαθέσιμες μεθόδους:
Κατασκευαστής – Χειροκίνητη αρχικοποίηση ενός 3-Wire Expander.
Triport– Create a 3-Wire Expander.
δείκτης#
index returns an integer based on the Smart Port that the 3-Wire Expander is connected to. For example, if the 3-Wire Expander is connected to Port 1, index will return 1.
Usage:
expander.index()
Παράμετροι |
Περιγραφή |
|---|---|
Αυτή η μέθοδος δεν έχει παραμέτρους. |
Κατασκευαστής#
Constructors are used to manually create Triport objects, which are necessary for configuring a 3-Wire Expander outside of VEXcode.
Triport#
Triport creates a 3-Wire Expander.
Usage:
Triport(smartport)
Παράμετρος |
Περιγραφή |
|---|---|
|
The Smart Port that the 3-Wire Expander is connected to, written as |
# Create a 3-Wire Expander in Port 10
expander = Triport(Ports.PORT10)
Each
Triportobject has 8 port attributes (athroughh) that represent the ports on the 3-Wire Expander. These can be used in any other 3-Wire device’s constructor as an argument for theportparameter.
# Connect a Bumper Switch to the 3-Wire Expander
bumper_expanded_a = Bumper(expander.a)