I've run out of ideas to find the reference, or I'm not sure if I am unskilled. I use Microsoft Visual C + + 2008, to remove the LED reading (reading hex / binary), but I can read the output is in ASCII.
This is my coding:
//Read button
private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e)
{
if(this->serialPort1->IsOpen)
{
this->textBox1->Text = String::Empty;
try
{
this->textBox1->Text= serialPort1->ReadExisting();
//
}
catch(TimeoutException^)
{
this->textBox1->Text="Time Out Exception";
}
// this->button1->Enable = true;
}
else
this->textBox1->Text="Port Not Opened";
}
The output in the textBox1. If I click on read button shown in ASCII. But i need read in hex or binary file.
Another can help me