Prog PuertoSerial
Prog PuertoSerial
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
// Para el puerto Serial:
using System.IO.Ports;
namespace PuertoSerial
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
// Abrir el puerto:
if (puertoSerial != null)
{
puertoSerial.Open();
MessageBox.Show("Puerto abierto");
timer1.Interval = 200;
timer1.Enabled = true;
}
}