Initial commit
This commit is contained in:
27
comparator-test.c
Normal file
27
comparator-test.c
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// Created by vlad on 22.08.22.
|
||||
//
|
||||
|
||||
#include <avr/io.h>
|
||||
#include <util/delay.h>
|
||||
#include "config.h"
|
||||
|
||||
|
||||
int main() {
|
||||
// сделаем как выход LED2 (красный)
|
||||
DDRD = INIT_DDRD;
|
||||
DDRB = INIT_DDRB;
|
||||
for (;;) {
|
||||
// if (ACSR & (1 << ACO)) {
|
||||
// LED2_Set();
|
||||
// } else {
|
||||
// LED2_Reset();
|
||||
// }
|
||||
LED2_Set();
|
||||
EXTPWR_EN_Set();
|
||||
_delay_ms(500);
|
||||
LED2_Reset();
|
||||
EXTPWR_EN_Reset();
|
||||
_delay_ms(500);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user