Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Net;
- using System.Net.Sockets;
- using System.Threading;
- using Microsoft.SPOT;
- using Microsoft.SPOT.Hardware;
- using SecretLabs.NETMF.Hardware;
- using SecretLabs.NETMF.Hardware.Netduino;
- using System.IO.Ports;
- namespace NetDCC
- {
- public static class Program
- {
- public static void Main()
- {
- SerialPort1.Open();
- while (true)
- {
- SerialPort1.Write(comandoIdle, 0, comandoIdle.Length);
- }
- }
- public static SerialPort SerialPort1 = new SerialPort("COM1", 19200, Parity.None, 8, StopBits.One);
- public static SerialPort SerialPort2 = new SerialPort("COM2", 19200, Parity.None, 8, StopBits.One);
- public static byte[] comandoIdle = new byte[] { 0x55, 0x55, 0x56, 0x55, 0xE6, 0xE6, 0xE6, 0xE6, 0xE6, 0x55, 0x55 };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement