diff --git a/slave/slave/config.h b/slave/slave/config.h
--- a/slave/slave/config.h
+++ b/slave/slave/config.h
@@ -20,7 +20,7 @@
#define HUMID_ADDR 0xA4 //THIS VALUE IS WRONG
- #define RTC_ADDR 0xA4 //DEBUG //THIS VALUE IS WRONG
+ #define RTC_ADDR 0xA2 //DEBUG //read A3 - write A2
diff --git a/slave/slave/slave.c b/slave/slave/slave.c
--- a/slave/slave/slave.c
+++ b/slave/slave/slave.c
@@ -27,7 +27,7 @@
void micro_setup()
{
// Generic microcontroller config options
-
+ DDRA=0xFF; //PORTA is output //DEBUG
}
@@ -54,12 +54,16 @@ int main(void)
- i2c_write(RTC_ADDR, 0x05, 0x3A); //DEBUG: EXAMPLE
+ //i2c_write(RTC_ADDR, 0x05, 0x3A); //DEBUG: EXAMPLE
+
+ _delay_ms(10);
- temp = i2c_read(RTC_ADDR, 0x24); //DEBUG: EXAMPLE
+ temp = i2c_read(RTC_ADDR, 0x02); //DEBUG: EXAMPLE: seconds
+ //_delay_ms(10);
-
+ //PORTA = temp;
+ PORTA = 0xFF;
}
return 0;
diff --git a/slave/slave/slave.cproj b/slave/slave/slave.cproj
--- a/slave/slave/slave.cproj
+++ b/slave/slave/slave.cproj
@@ -5,7 +5,7 @@
6.0
com.Atmel.AVRGCC8
{40d97b6e-7ff4-48e7-9a9e-5e50ba18526b}
- ATmega644P
+ ATmega324P
none
Executable
C
@@ -21,6 +21,52 @@
0
3.1.3
+ ISP
+ com.atmel.avrdbg.tool.ispmk2
+
+ com.atmel.avrdbg.tool.simulator
+ AVR Simulator
+
+
+ true
+ false
+
+
+
+ 127.0.0.1
+ 55286
+ False
+
+
+
+ com.atmel.avrdbg.tool.ispmk2
+ AVRISP mkII
+ 000200131077
+ true
+ false
+
+
+
+ 127.0.0.1
+ 55286
+ False
+
+
+ ISP
+
+ 249000
+ 1000000
+ 2010000
+ false
+ false
+ 0
+ 0
+ 0
+ 0
+
+
+
+ True