chipKIT Max32

Talk about Arduino board, sheilds. Sharing Arduino projects, program, problems, solutions, suggestions..... many more, all are welcome.

Re: chipKIT Max32

Postby epulleh » Fri Mar 29, 2013 2:38 pm

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 :?:
Attachments
output.PNG
epulleh
Freshie
 
Posts: 7
Joined: Mon Mar 18, 2013 9:45 pm

Previous

Return to Arduino Based

Who is online

Users browsing this forum: No registered users and 21 guests

cron