add BlinkOuts

This commit is contained in:
2022-10-15 06:55:57 +02:00
parent a39486c0fc
commit 962ef3878d
2 changed files with 7 additions and 0 deletions

View File

@@ -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)
*
*

View File

@@ -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);