BeRTOS
Data Structures | Functions
led_7seg.h File Reference
#include "cfg/cfg_led_7seg.h"
#include <drv/timer.h>
#include <mware/event.h>

Go to the source code of this file.

Data Structures

struct  SevenSeg
 Context data for Display functions. More...

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

Variables

Numbers and Letters Table.
Note:
These tables contain all the printable characters on a 7 segment digit encoded for common cathode and common anode display type.

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ., -, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, SPACE

static const uint8_t segstable []

Detailed Description

Author:
Fabio Bizzi <fbizzi@bizzi.org>

Definition in file led_7seg.h.