get () from gamepad

get from gamepad

Get () from terminal block is a reporter block available in Dabble extension for evive and other Arduino boards. 

In the joystick and accelerometer mode, there is a joystick, which provides the following data in real-time:

  1. X value: The value of the x position (on the horizontal axis) of the white dot in the joystick. It is an integer value and varies from -7 to 7. At the center, the value is 0.
  2. Y value: The value of the y position (on the verticle axis) of the white dot in the joystick. It is an integer value and varies from -7 to 7. At the center, the value is 0.
  3. Radial value: The distance from the center of the joystick. This value varies from 0 to 7. At the center, the value is 0 and on the perimeter of the joystick, the value is 7.
  4. Angle: The angle is the angle between the positive x-axis and the line joining the center and the current position of the dot. It varies from 0 to 360 at a step of 15 degrees.

The block returns the real-time value of the selected parameter (X value, Y value, radial value, and angle) form the joystick and accelerometer mode of the Gamepad module of the Dabble app. You can choose the parameter from the drop-down menu.

evive Notes Icon
Note: This block is available in both Upload mode and Stage mode.

Example

  1. Displaying all the joystick parameters on the evive TFT display.
    get from gamepad example
This helped
This didn't help

Content is available under CC BY-SA 4.0 unless otherwise noted.

Related Tutorials, Projects & Documentation
All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart