Beispiel #1
0
 /// <summary>
 /// Writes a byte on a port address.
 /// </summary>
 /// <param name="port">The port address (16 Bit)</param>
 /// <param name="data">The byte to write</param>
 public static void Write(int port, int data)
 {
     GPIOPort.WritePort(port, data);
 }
Beispiel #2
0
 /// <summary>
 /// Reads a byte from a given port.
 /// </summary>
 /// <param name="port">The given port (16 Bit)</param>
 /// <returns>The read byte</returns>
 public static int Read(int port)
 {
     return(GPIOPort.ReadPort(port));
 }