Newer
Older
lambda-avr / lambda / display.h
/*
 * display.h
 *
 * Functions to format, display and log measurements.
 *
 *  Created on: 10.04.2015
 *      Author: dode@luniks.net
 *
 */

#ifndef DISPLAY_H_
#define DISPLAY_H_

uint8_t getPosition(void);

/**
 * Cycles through the "menu" (display options) and flags pending display update.
 */
void cycleDisplay(void);

/**
 * Updates the measurements, tracks max values since last start/reset
 * and flags pending display update.
 */
void updateMeas(Measurement);

/**
 * Resets max measurements to initial values and flags pending display update.
 */
void resetMeas(void);

/**
 * Updates the display if an update is pending.
 */
void updateDisplayIfPending(void);

/**
 * Formats the given measurement values and prints them via USART.
 */
void logMeas(Measurement meas);

/**
 * Displays the given two lines of text.
 */
void displayText(char* line0, char* line1);

#endif /* DISPLAY_H_ */