Sensors Xplained Electronic Compass Calibration Application.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
#include "sensor_demo.h"
Functions | |
int | main (void) |
Main entry of example application. More... | |
static void | prompt_user (char *prompt_string) |
User prompt routine. More... | |
int main | ( | void | ) |
Main entry of example application.
References clear_screen, data, delay_ms, gfx_mono_draw_circle, gfx_mono_draw_line, gfx_mono_draw_string(), gfx_mono_init, GFX_PIXEL_CLR, GFX_PIXEL_SET, GFX_WHOLE, gpio_set_pin_high, sensor_data_t::heading, hz_to_ms, M_PI, MANUAL_CALIBRATE, PROMPT_LED, prompt_user(), radians, REFRESH_PERIOD, sensor_attach(), sensor_calibrate(), SENSOR_ERR_IO, sensor_get_heading(), sensor_platform_init(), SENSOR_TYPE_COMPASS, ST7565R_DISPLAY_CONTRAST_MIN, st7565r_set_contrast(), and sysfont.
|
static |
User prompt routine.
This routine prompts the user to press the button and then waits for him to do so.
References ALL_LEDS, clear_screen, delay_ms, gfx_mono_draw_string(), PROMPT_LED, SW1, switch_pressed, and sysfont.
Referenced by main().