/*
 * COMPASS_LEDS.h
 *
 *  Created on: Apr 3, 2021
 *      Author: Think
 */

#ifndef COMPASS_LEDS_H_
#define COMPASS_LEDS_H_

#include "stm32f4xx_hal.h"
#include "MY_TYPES.h"

typedef enum {NORTH = 1, SOUTH = 2, WEST = 4, EAST = 8, NONE = 16} Heading;
typedef struct
{
	GPIO_InitTypeDef northLed, southLed, westLed, eastLed;
} COMPASS_LEDS;

bool COMPASS_LEDS_Init(COMPASS_LEDS *compassLeds);
bool COMPASS_LEDS_Light(COMPASS_LEDS *compassLeds, Heading heading);

#endif /* COMPASS_LEDS_H_ */
