This is completely insane but I love it. Who knew you can play youtube videos on a 80×25 text console. Windows could never do that ;-)
I’ve been meaning to post this for a while but got caught up with work stuff again. Thinking that talking to an Arduino from C# should be fairly easy, I spent a good hour or so fiddling with it because I could never get the Arduino to run my sketch after establishing the serial connection. Turns out, the DTR Enable line needs to be set to high for it to start executing the program. Here’s a quick hack which interacts with the program I posted previously:
I finally had the time to assemble my Arduino kit, which mostly took soldering the protoshield together. My first program is fairly simple and written in C (as opposed to AVR assembler, which is actually pretty easy). I attached two LEDs and one switch with a pull-up resistor to the Arduino microcontroller. The small C program toggles the red and green LEDs when the button is hit, send the current state back to the computer via the USB port and accepts commands to turn on either the red or green LED from the computer.
The full source code: