Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1463 → Rev 1464

/branches/V0.76g-acid/servoboard/readme.txt
22,7 → 22,7
 
LED on = ready, no signal
LED blinking fast = I2C data received
LED bliking slowly (1 second) = servos not configured
LED blinking slowly (1 second) = servos not configured
 
 
UART programming mode (9600 baud)
/branches/V0.76g-acid/servoboard/servoboard.c
112,7 → 112,7
cli();
uart_init();
eeprom_init();
i2c_init(0x82);
i2c_init(I2C_ADDRESS);
pwm_init();
set_pwm_neutral();
sei();
147,7 → 147,7
} else if (blink_counter % blink == 0) {
blink_counter = 1;
if (LED_IS_ON) {
LED_OFF;
LED_OFF;
} else {
LED_ON;
}
/branches/V0.76g-acid/servoboard/servoboard.h
1,8 → 1,7
 
 
#define VERSION "0.2"
#define VERSION "0.3"
 
 
extern volatile uint8_t pwm_position[6];
extern volatile uint8_t pwm_neutral_position[6];
extern volatile uint16_t pwm_limit[6];
17,8 → 16,7
void eeprom_init();
void eeprom_write();
 
#define GRN_ON PORTD &= ~0x01
#define GRN_OFF PORTD |= 0x01
#define I2C_ADDRESS 0x82
 
#define SERVODDR DDRB
#define SERVOPORT PORTB
/branches/V0.76g-acid/servoboard/servoboard.hex
310,7 → 310,7
:101350006E847D848C849B84AA84B984C884DF8055
:10136000EE80FD800C811B81AA81B981CE0FD11D39
:0E1370000FB6F894DEBF0FBECDBFED0108959D
:10137E00302E3200736572766F626F617264202553
:10137E00302E3300736572766F626F617264202552
:10138E00730A3E2000534552564F20256420564185
:10139E004C55452025640A0048454C50004449539D
:1013AE00504C415920202020202020202020202079