Advanced Distributed Systems module at HSLU
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
803 B

/*
* multi-splitflap.h
*
* Created on: 07.10.2022
* Author: jonas
*/
#ifndef MULTI_SPLITFLAP_H_
#define MULTI_SPLITFLAP_H_
#include "splitflap.h"
#define NUM_FLAPS 2 // Number of flaps that can be added to the combination
/* initialize dictionary */
void MultiSplitFlap_Init();
/* de-initialize: deallocate memory etc. */
void MultiSplitFlap_Deinit(void);
/* add a splitflap to the combination */
void MultiSplitFlap_AddFlap(SF_Handle_t splitflap);
/* display a sentence on the splitflap combination
* splitflaps must be initialized to be able to display something!*/
void MultiSplitFlap_Display(char sentence[]);
/* returns the amount of registered split flap displays in the combination */
uint8_t MultiSplitFlap_GetAmountOfAddedSplitFlaps(void);
#endif /* MULTI_SPLITFLAP_H_ */