add BlinkOuts
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <avr/io.h>
|
||||
#include <stdint.h>
|
||||
#include <util/atomic.h>
|
||||
#include "io-helper.h"
|
||||
|
||||
@@ -69,6 +70,11 @@ void ioHelperEdgeDetector(void){
|
||||
}
|
||||
}
|
||||
|
||||
void ioHelperBlinkOuts(){
|
||||
for(uint8_t i=0; i<nrOfOutputs/8; i++)
|
||||
outStates[i] ^= outStatesBlinking[i];
|
||||
}
|
||||
|
||||
/* @brief: copies a single bit from one char to another char (or arrays thereof)
|
||||
*
|
||||
*
|
||||
|
||||
@@ -27,6 +27,7 @@ void ioHelperSetBit(volatile uint8_t *list, uint8_t nr, uint8_t state);
|
||||
unsigned char ioHelperReadBit(volatile uint8_t *list, uint8_t nr);
|
||||
void ioHelperDebounce(void);
|
||||
void ioHelperEdgeDetector(void);
|
||||
void ioHelperBlinkOuts(void);
|
||||
|
||||
uint8_t read_Input(uint8_t nr, uint8_t type);
|
||||
void set_Output(uint8_t nr, uint8_t state);
|
||||
|
||||
Reference in New Issue
Block a user