コード例 #1
0
 private void WriteRegister(WiFlyShield.Registers register, byte data)
 {
     m_uart.Write(new byte[] { (byte)register, data });
 }
コード例 #2
0
 private byte ReadRegister(WiFlyShield.Registers register)
 {
     byte[] buffer = new byte[] { (byte)((byte)register | 0x80), 0 };
     m_uart.WriteRead(buffer, buffer);
     return buffer[1];
 }