Hi
I am a new to the NETDUINO (and c#)
So far it looks great, I am looking forward to study and do great things with it.
Currently, I own a NETDUINO (or NETDUINO 1).
I have search the web, but I did not found a solution.
Let me introduce my problem as simple as I can.
in order to interact the hardware in realtime,
I'd like to be able to turn the onboard led on and off by clicking the SPACE button on my PC keyboard.
I'd like to integrate the Netduino with a standard c# Console program.
something like this:
static void main(){for (int i = 0; i<10 ; i++) { console.readkey(); // wait for a keypress on my PC keyboard turn_on_led_function(); // a function that turns the onboard led on console.readkey(); // wait for a keypress on my PC keyboard turn_off_led_function(); // a function that turn the onboard led off console.writeline("{0}", get_button_status()); //bool read the button status}}
is this kind of code possible anyway ?
Can you help me with the LED and BUTTON functions ?
Thanks
Oren