4032

Nice impressive demo for a 3D aircraft model in the browser window, which is controlled by the 3-axis orientation of the M5-device itself.

The developer of the  ANNEX32 BASIC language interpreter for ESP8266 and ESP32  published sime time ago a DEMO for the ESP8266 with an external orientation sensor 
I adapted that for the use with an ESP32 based M5Stack FIRE.  This device has a built-in orientation sensor MPU9250 and works independently and really wireless on the basis of its LiPol battery.
By combining and modifying the code snippets of the ANNEX32 help file it was only a short work until a nice impressive demo for a 3D aircraft model could be seen in the browser window, which is controlled by the 3-axis orientation of the M5. .

A short Video of the result is HERE
ATTENTION: The BASIC-code and the additional files for the 3D-Model and JS-scripts must be located in the root directory of the M5-filesystem and not in a subdirectory.
The necessary  additional files come from the full-size-datafile of  ANNEX for ESP8266.

I hope this little application might be as much fun for someone else as it was for me.

The BASIC code for ANNEX32-RDS is attached: