AHF_BrainLight
AHF_BrainLight.AHF_BrainLight module
- class AHF_BrainLight.AHF_BrainLight(taskP, settingsDictP)
Bases:
AHF_Base.AHF_Base- abstract static config_user_get(starterDict={})
static method that querries user for settings, with default responses from starterDict, and returns starterDict with settings as edited by the user.
- defaultDelay = 3.0
- hardwareTest()
generic hardware tester for brain illumination, turns on, waits 2 seconds, turns off
- abstract offForStim()
Runs when headFixing ends, turning off whatever was turned on
- abstract onForStim()
Runs when headFixing starts, illuminating the brain or whatever needs illuminating
AHF_BrainLight.AHF_BrainLight_1GPIO module
- class AHF_BrainLight_1GPIO.AHF_BrainLight_1GPIO(taskP, settingsDictP)
Bases:
AHF_BrainLight.AHF_BrainLight- static about()
Returns a brief message describing your sub-class, used when asking user to pick a sub-class of this class
- static config_user_get(starterDict={})
static method that querries user for settings, with default responses from starterDict, and returns starterDict with settings as edited by the user.
- defaultPin = 23
- offForStim()
Runs when headFixing ends, turning off whatever was turned on
- onForStim()
Runs when headFixing starts, illuminating the brain or whatever needs illuminating
- static onThread(sleepTime, ledPin)
- setdown()
oppposite of setup. Releases any hardware resouces. can be run before editing settings so GPIO pins can be reused, for example. This strategy should be used in hardwareTest method.
- setup()
does hardware initialization of a brain lighter with(possibly updated) info in self.settingsDict