BeRTOS
Functions
led_7seg.c File Reference

7 segments LED displays (impl) More...

#include "drv/led_7seg.h"
#include "hw/hw_led_7seg.h"
#include "cfg/cfg_arch.h"
#include <drv/timer.h>
#include <string.h>

Go to the source code of this file.

Functions

int sevenseg_print (SevenSeg *SS, const char *sstring)
 Print a string on the display.
void sevenseg_init (SevenSeg *SS)
 initialize the structure and the timer for the display
bool sevenseg_isReady (SevenSeg *SS)
 check if is possible to do a new print
bool sevenseg_unlock (SevenSeg *SS)
 unlock the SevenSeg structure and stops the print
bool sevenseg_lock (SevenSeg *SS)
 lock the SeveSeg structure and starts a new print
bool sevenseg_setBlink (SevenSeg *SS, bool blink, uint8_t digit)
 set the blinking of the digits of the display
bool sevenseg_setRunonce (SevenSeg *SS, bool runonce)
 set if the text has to be displayed just one time
bool sevenseg_setRunspeed (SevenSeg *SS, unsigned int r_speed)
 set the scrolling speed of the text
bool sevenseg_clear (SevenSeg *SS)
 clear the display

Detailed Description

7 segments LED displays (impl)

Author:
Fabio Bizzi <fbizzi@bizzi.org>

Definition in file led_7seg.c.