Project

General

Profile

Revision 955

Some changes in I2C testing in the main loop

View differences:

branches/autonomous_recharging/code/projects/autonomous_recharging/archs/ConstantCharging.c
23 23
#define HOMING_PIN PA7
24 24

  
25 25
#define DEBUG 1 //enable I2C outputs of form time, OCR, current, voltage, temp
26
#define USE_I2C 0
26
#define USE_I2C 1
27 27

  
28 28

  
29 29
#define MAX_T 300
......
558 558
  
559 559
	setup();
560 560

  
561
i2c_init();
562
PORTB|=_BV(LED2);
563
PORTB|=_BV(LED1);
564

  
565

  
566
while(1)
567
{
568
	delay_ms(500);
569
	i2c_putpacket(0x01,'I', 1);
570
	delay_ms(500);
571
}
572

  
561 573
#if USE_I2C
562 574
	delay_ms(500);
563 575
	i2c_init();

Also available in: Unified diff