.net micro framework - how to send a signal to run a machine using netduino? -
first, beginner in netduino , micro-framework, situation : have application (winforms app) in win pad application sleeping detection, , have netduino cart, want it's send signal(start/stop) netduino car window, mean if signal sent window coming down , if it's sent second time window coming up. see example of led :
public static void main() { var led = new outputport(pins.gpio_pin_d0, false); while (true) { led.write(!led.read()); thread.sleep(1000); } }
so please if has idea appreciative.
update : code basic , wondered if it's correct.
outputport carwindow = new outputport(pins.gpio_pin_a0, false); while (true) { carwindow.write(true);//open window thread.sleep(2000); }
Comments
Post a Comment