import { Channel } from "https://deno.land/x/pita_api@0.9.1/mod.ts";
Set the trigger of the Channel.
Examples
Example 1
Example 1
adc1.setTrigger(Trigger.Now)
//channel start to acquire
await adc1.readSlice(125) //ok
adc1.setTrigger(Trigger.Disabled)
//channel stop to acquire
await adc1.readSlice(125) //error
Parameters
trigger: Trigger
- The trigger parameter is a value that which event launch processing.