Yoctopuce Yocto-I2C Mode D'emploi page 412

Table des Matières

Publicité

25. Référence de l'API de haut niveau
i2cport→writeHex()
Envoie une séquence d'octets (fournie sous forme de chaîne hexadécimale) sur le bus I2C.
function writeHex( hexString)
js
int writeHex( string hexString)
cpp
-(int) writeHex : (NSString*)
m
LongInt writeHex( hexString: string): LongInt
pas
function writeHex( ByVal
vb
int writeHex( string hexString)
cs
int writeHex( String hexString)
java
async Task<int> writeHex( string hexString)
uwp
writeHex( hexString)
py
function writeHex( $hexString)
php
async writeHex( hexString: string): Promise<number>
ts
async writeHex( hexString)
es
int writeHex( string hexString)
dnp
int writeHex( string hexString)
cp
YI2cPort
target
cmd
Selon l'état du bus I2C, le premier octet sera interprété comme un octet d'adresse ou un octet de
données.
Paramètres :
hexString
la chaîne hexadécimale à envoyer
Retourne :
YAPI.SUCCESS
si l'opération se déroule sans erreur.
En cas d'erreur, déclenche une exception ou retourne un code d'erreur négatif.
404
hexString
hexString
As String) As Integer
writeHex
hexString
YI2cPort
www.yoctopuce.com

Publicité

Table des Matières
loading

Table des Matières