File GateInput.cpp¶ File List > examples > GateInput > GateInput.cpp Go to the documentation of this file Source Code¶ #include "daisy_seed.h" using namespace daisy; DaisySeed hw; GateIn gate_in; int main(void) { hw.Init(); gate_in.Init(seed::D11); while(1) { if(gate_in.State()) hw.SetLed(true); else hw.SetLed(false); } }