-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Huge refactoring of buttons and displaying
- Loading branch information
R. Kaleta
committed
Feb 23, 2020
1 parent
f91bb88
commit d19c513
Showing
12 changed files
with
224 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef SHOW_DISPLAYER_H_ | ||
#define SHOW_DISPLAYER_H_ | ||
|
||
#include <stdint.h> | ||
#include "displayer.h" | ||
#include "showing.h" | ||
#include "types.h" | ||
|
||
typedef struct | ||
{ | ||
uint8_t column; | ||
character_t sign; | ||
} vote_place; | ||
|
||
extern const vote_place PlacePlus; | ||
extern const vote_place PlaceEgal; | ||
extern const vote_place PlaceMinus; | ||
|
||
void show_disp_vote(vote_place place, number_t value); | ||
void show_disp_all(); | ||
void show_disp_error(); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef SHOW_UART_H_ | ||
#define SHOW_UART_H_ | ||
|
||
#include "showing.h" | ||
#include "types.h" | ||
#include "uart.h" | ||
|
||
void show_uart_vote(character_t sign, number_t value); | ||
void show_uart_all(); | ||
void show_uart_error(); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef SHOWING_H_ | ||
#define SHOWING_H_ | ||
|
||
#include "types.h" | ||
|
||
#define SIGN_PLUS '+' | ||
#define SIGN_EGAL '?' | ||
#define SIGN_MINUS '-' | ||
|
||
extern const character_t SignWaiting; | ||
extern const character_t SignError[3]; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.