#include <stdio.h>
#include <string.h>
#include <driver/gpio.h>
#include <esp_log.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include "pin_defs.h"
#include "lsa.h"
Go to the source code of this file.
◆ MARIO_LOGO
◆ MARIO_TEXT
#define MARIO_TEXT CONFIG_MARIO_LOGO_TEXT |
◆ SRA_LOGO
◆ WALLE_LOGO
◆ WALLE_TEXT
#define WALLE_TEXT CONFIG_WALL_E_LOGO_TEXT |
◆ display_logo()
esp_err_t display_logo |
( |
int |
logo_id | ) |
|
displays SRA/Wall-E/Mario logo on OLED screen
- Parameters
-
- Returns
- esp_err_t i.e it shows if logo is displayed successfully or not
◆ display_lsa()
displays LSA bar on OLED screen
- Parameters
-
- Returns
- esp_err_t i.e it shows if LSA bar is displayed successfully or not
◆ display_mpu()
esp_err_t display_mpu |
( |
float |
pitch, |
|
|
float |
roll |
|
) |
| |
displays pitch and roll readings on OLED screen
- Parameters
-
pitch | Value of pitch in float |
roll | Value of Roll in float |
- Returns
- esp_err_t i.e it shows if Pitch and Roll values are displayed successfully or not
◆ display_pid_values()
esp_err_t display_pid_values |
( |
float |
kp, |
|
|
float |
ki, |
|
|
float |
kd |
|
) |
| |
displays kp, ki and kd reading on the OLED screen
- Parameters
-
kp | value of kp in float |
ki | value of ki in float |
kd | value of kd in float |
- Returns
- esp_err_t i.e it shows if Pitch and Roll values are displayed successfully or not
◆ display_servo_values()
esp_err_t display_servo_values |
( |
int |
s1, |
|
|
int |
s2, |
|
|
int |
s3, |
|
|
int |
s4 |
|
) |
| |
displays Servo angles on the OLED screen
- Parameters
-
s1 | value of Servo_A in float |
s2 | value of Servo_B in float |
s3 | value of Servo_C in float |
s4 | value of Servo_D in float |
- Returns
- esp_err_t i.e it shows if Pitch and Roll values are displayed successfully or not
◆ init_oled()
enables and configures OLED display
- Parameters
-
- Returns
- esp_err_t i.e it shows if OLED is initialised successfully or not