Clean up leftover files from refactoring

This commit is contained in:
Rihards Skuja 2017-11-24 13:42:08 +02:00
parent 4a0ef9515c
commit 4355f8aa77
No known key found for this signature in database
GPG Key ID: 53FA13A3F7F8571B
2 changed files with 0 additions and 45 deletions

31
main.c
View File

@ -1,31 +0,0 @@
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "ds18b20.h"
#include "main.h"
#include "io.h"
void initIO()
{
DDRD |= (1 << LED_1);
}
void readTemp()
{
double d;
sei();
d = ds18b20_gettemp();
if (d >= 21)
PORTD |= (1 << LED_1);
else
PORTD &= ~(1 << LED_1);
}
int main(void)
{
initIO();
readTemp();
return 0;
}

View File

@ -1,22 +1,12 @@
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
/* https://davidegironi.blogspot.com/2014/09/a-ds18b20-1-wire-digital-thermometer.html */
#include "ds18b20.h"
/* https://github.com/kehribar/nrf24L01_plus */
#include "main.h"
#include "io.h"
void initIO()
{
DDRB |= (1 << SERVO_L);
TCCR1A |= (1 << COM1A1) | (1 << WGM10);
TCCR1B |= (1 << CS10) | (1 << WGM12);
DDRD |= (1 << SERVO_R);
TCCR0A |= (1 << COM0A1) | (1 << WGM00);
TCCR0B |= (1 << CS00) | (1 << WGM02);
DDRD |= (1 << LED_1);
}
@ -41,9 +31,5 @@ int main(void)
initIO();
readTemp();
/* Full speed */
OCR1A = 0x00;
OCR0A = 0x00;
return 0;
}