1. 29 Jan, 2017 1 commit
    • Paul Sokolovsky's avatar
      extmod/machine_signal: Implement "signal" abstraction for machine module. · 7a7516d4
      Paul Sokolovsky authored
      A signal is like a pin, but ca also be inverted (active low). As such, it
      abstracts properties of various physical devices, like LEDs, buttons,
      relays, buzzers, etc. To instantiate a Signal:
      
      pin = machine.Pin(...)
      signal = machine.Signal(pin, inverted=True)
      
      signal has the same .value() and __call__() methods as a pin.
      7a7516d4