TTK4155 Lab Node 1
Term project in the NTNU course TTK4155 Embedded and Industrial Computer Systems Design
Loading...
Searching...
No Matches
io_joystick_position Struct Reference

Represents the position of a joystick relative to center. More...

#include <io.h>

Data Fields

int8_t x
int8_t y

Detailed Description

Represents the position of a joystick relative to center.

Definition at line 70 of file io.h.

Field Documentation

◆ x

int8_t io_joystick_position::x

X position in % from center (-127 to 127)

Definition at line 71 of file io.h.

Referenced by io_joystick_read_position(), io_oled_clear_line(), io_oled_init(), and tx_joy_btn().

◆ y

int8_t io_joystick_position::y

Y position in % from center (-127 to 127)

Definition at line 72 of file io.h.

Referenced by io_joystick_read_position(), and tx_joy_btn().


The documentation for this struct was generated from the following file: