Δείκτης LED#

Εισαγωγή#

Η ένδειξη LED επιτρέπει στον εγκέφαλο EXP να ενεργοποιεί ή να απενεργοποιεί μια συνδεδεμένη δίοδο εκπομπής φωτός (LED) χρησιμοποιώντας μια θύρα 3 καλωδίων.

Η πράσινη ενδεικτική λυχνία LED VEX EXP.

This page uses led_a as the example LED Indicator name. Replace it with your own configured name as needed.

Παρακάτω είναι μια λίστα με τις διαθέσιμες μεθόδους:

  • on – Turns the specified LED Indicator on.

  • off – Turns the specified LED Indicator off.

Κατασκευαστής – Χειροκίνητη αρχικοποίηση μιας ενδεικτικής λυχνίας LED.

  • Led – Create an LED Indicator.

επί#

on turns the specified LED Indicator on.

Usage:
led_a.on()

Παράμετροι

Περιγραφή

Αυτή η μέθοδος δεν έχει παραμέτρους.

μακριά από#

off turns the specified LED Indicator off.

Usage:
led_a.off()

Παράμετροι

Περιγραφή

Αυτή η μέθοδος δεν έχει παραμέτρους.

Κατασκευαστής#

Constructors are used to manually create Led objects, which are necessary for configuring an LED Indicator outside of VEXcode.

Led#

Led creates an LED Indicator.

Usage:
Led(port)

Παράμετρος

Περιγραφή

port

The 3-Wire Port that the LED Indicator is connected to:

  • On the EXP Brainbrain.three_wire_port.x where x is the number of the port.
  • On a 3-Wire Expanderexpander.a where expander is the name of the expander instance.

# Create an LED Indicator in Port A
led_a = Led(brain.three_wire_port.a)