3 defined values, 11 play tone +wtone, 1 description – Rainbow Electronics 900 User Manual

Page 180: 2 syntax, 11 play, Tone, Wtone

Advertising
background image

FLYFOT-M260-MODULE

Page: 180 / 239

This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.

OK
On reset, all GPIOs are set to 0, as an output.

AT+WIOM=?

+WIOM: (0-255),(0-255)
OK
Range allowed for the parameters.

AT+WIOM=254
Set GPIO 0 as an input, and all others as outputs.

OK

AT+WIOM=,128
Set GPIO8 or GPO 3 default output value to 1.

OK

AT+WIOM?

+WIOM: 254,128
OK

18.10.3 Defined values

<GpioDir> : Bit table parameter indicating each GPIO direction.

0 : input
1 : output (default value).
Default value : 255 (all GPIOs set as outputs).

<GpioVal> : Bit table parameter indicating each output-configurated GPIO value (each bit gives the
corresponding GPIO default value).

0 : reset (default value)
1 : set
Remark : the GPIOs set as inputs by the <GpioDir> parameter are not affected by the value set by the

<GpioVal> parameter.


Notes :

z

<GpioDir> bit values for GPI and GPO are ignored.

z

<GpioVal> bit values for GPI are ignored.

18.11 Play tone +WTONE

18.11.1 Description :

This specific command allows a tone to be played on the current speaker or on the buzzer. Frequency,
gain and duration can be specified.

18.11.2 Syntax :

Command syntax: AT+WTONE=<mode>[,<dest>,<freq>,<gain>,<duration>]

Advertising