quelqu'un peut m'aider à convertir ce bout de code en delphi
Code C : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 static private byte[] MakeRequest() { // request for reading Analog Input is always 8 bytes long. byte[] write = new byte[8]; write[0] = _Id; // device id write[1] = 0x04; // Read A I byte[] start = BitConverter.GetBytes((ushort)_StartAddress); // ushort = 2 bytes write[2] = start[1]; // msb first write[3] = start[0];
Partager