title: Recieving Data From Arduino in Winform
body: <p>I am trying to conrolling my object with button which is added arduino.
  I have Funduino to manage that.There are 4 button on it but I am going to use 3 of them.But I coulnd't get data from my serial port.</p>
  
  <p>So I wonder if I may request  from you guys to give me some tips about how can I do to getting whether those 3 buttons are pressed or not in c# interface.</p>
  
  <p>Here my codes in arduino:</p>
  
  <pre><code>// Store the Arduino pin associated with each input
  const byte PIN_BUTTON_SELECT = 6; // Select button is triggered when joystick is                                                           pressed
  
  const byte PIN_BUTTON_RIGHT = 3;
  const byte PIN_BUTTON_UP = 2;
  const byte PIN_BUTTON_DOWN = 4;
  const byte PIN_BUTTON_LEFT = 5
  void setup() {
  
  Serial.begin(9600);
  
  // Specify each pin connected to a pushbutton as an input.
  // Also enable the Arduino's internal "pull-up" resistors
  // for each pushbutton we want to read--this means the shield
  // doesn't need to have resistors on it.
  // Note that when a pull-up resistor is used on a pin the
  // meaning of the values read are reversed compared to their
  // usual meanings:
  //    * HIGH = the button is not pressed
  //    * LOW = the button is pressed  
  pinMode(PIN_BUTTON_RIGHT, INPUT);  
  digitalWrite(PIN_BUTTON_RIGHT, HIGH);
  
  pinMode(PIN_BUTTON_LEFT, INPUT);  
  digitalWrite(PIN_BUTTON_LEFT, HIGH);
  
  pinMode(PIN_BUTTON_UP, INPUT);  
  digitalWrite(PIN_BUTTON_UP, HIGH);
  
  pinMode(PIN_BUTTON_DOWN, INPUT);  
  digitalWrite(PIN_BUTTON_DOWN, HIGH);
  
  pinMode(PIN_BUTTON_SELECT, INPUT);  
  digitalWrite(PIN_BUTTON_SELECT, HIGH); 
   }
  
  
  void loop() {
  
  
  }
  </code></pre>