MasterScan  Lab_Matlab_control Master Branch
List of all members | Properties and Events | Methods
dotsWritableDOutArduinoLEDs Class Reference
Inheritance diagram for dotsWritableDOutArduinoLEDs:
Inheritance graph
[legend]

Properties and Events

Property pinBase = 'A'
 Show LEDs using Liana's arduino masterpiece. More...
 
- Properties and Events inherited from dotsWritableDOut
Property defaultPauseBetweenPulses = 0.1
 for sendTTL pulses
 
- Properties and Events inherited from dotsWritable
Property isAvailable = false
 

whether or not the object is ready to read() from


 
Property clockFunction
 

any function that returns the current time as a number


 

Methods

self dotsWritableDOutArduinoLEDs ()
 Arguments are ultimately passed to openDevice.
 
timestamp toggleLED (self, indexOrName, color, onOff)
 Quickly turn on LED. More...
 
timestamp setLEDs (self, specs)
 Turn on/off LED(s) More...
 
timestamp turnOffLEDs (self, indices)
 Turn off all LEDs.
 
- Methods inherited from dotsWritableDOutArduino
self dotsWritableDOutArduino ()
 Arguments are ultimately passed to openDevice.
 
timestamp writeDigitalPin (self, pin, value)
 Write to a single digital output channel. More...
 
timestamp writeDigitalPins (self, pins, values)
 Write to a multiple digital output channels at once. More...
 
- Methods inherited from dotsWritableDOut
self dotsWritableDOut ()
 Constructor takes no arguments.
 
timestamp sendStrobedWord (self, word, port)
 Send a strobed digital word. More...
 
timestamp sendTTLPulse (self)
 Send a single TTL pulse. More...
 
firstTimestamp lastTimestamp sendTTLPulses (self, numPulses, pauseBetweenPulses, channel)
 Send multiple TTL pulses Timestamps are estimates of onset times of first and last pulses. More...
 
timestamp sendTTLSignal (self, channel, signal, frequency)
 Send a TTL signal or waveform. More...
 
- Methods inherited from dotsWritable
self dotsWritable ()
 

Constructor takes no arguments.


 
 initialize (self, varargin)
 

Locate, acquire, configure, etc. device and component resources.


 
time getDeviceTime (self)
 

Get the current time from clockFunction.


 
 close (self)
 

Release any resources acquired by initialize().


 
 delete (self)
 

Automatically close when Matlab is done with this object.


 

Additional Inherited Members

- Protected Properties inherited from dotsWritableDOutArduino
Property arduino
 Implement digital outputs using an Arduino, via the Matlab Arduino toolbox. More...
 
- Protected Methods inherited from dotsWritable
 openDevice (self)
 

Locate and acquire input device resources (for subclasses).

More...
 
 closeDevice (self)
 

Release input device resources (for subclasses).

More...
 
- Static Methods inherited from dotsWritableDOut
static dout getDefault ()
 get default Dout device
 

Methods

◆ toggleLED()

timestamp toggleLED ( self  ,
indexOrName  ,
color  ,
onOff   
)

Quickly turn on LED.

indexOrName is assumed to be based on Liana's 5-LED configuration: 1: Right 2: Top 3: Center 4: Left 5: Bottom Color is 'r', 'g', 'b' onOff is 0=off, 1=on,

◆ setLEDs()

timestamp setLEDs ( self  ,
specs   
)

Turn on/off LED(s)

specs is cell array of index, value pairs; e.g., {1 'r' 2 'off' 3 'g'}

Properties and Events

◆ pinBase

Property pinBase = 'A'

Show LEDs using Liana's arduino masterpiece.

pins [0, 1, 2, 3, ...] are [r1, g1, b1, r2, ...] Created by jig from Liana Keesing's prototype July 13, 2019 For accessing hardware pins


The documentation for this class was generated from the following file: