//Initialize the ports void port_init(void) { servo1_pin_config(); //Configure PORTB 5 pin for servo motor 1 operation servo2_pin_config(); //Configure PORTB 6 pin for servo motor 2 operation servo3_pin_config(); //Configure PORTB 7 pin for servo motor 3 operation motion_pin_config(); //Configure pins required for motion control }
//function to initialize all ports void port_init() { motion_pin_config(); servo1_pin_config(); servo2_pin_config(); lcd_port_config(); //adc_pin_config(); }
//!Function to initialize ports void port_init() { servo1_pin_config(); //Configure PORTB 5 pin for servo motor 1 operation servo2_pin_config(); //Configure PORTB 6 pin for servo motor 2 operation servo3_pin_config(); //Configure PORTB 7 pin for servo motor 3 operation motion_pin_config(); buzzer_pin_config(); lcd_port_config(); }
//Function to initialize ports void port_init() { motion_pin_config(); servo1_pin_config(); left_encoder_pin_config(); //left encoder pin config right_encoder_pin_config(); //right encoder pin config ext_encoder_pin_config(); }
//Initialize the ports void port_init(void) { servo1_pin_config(); //Configure PORTB 5 pin for servo motor 1 operation adc_pin_config(); lcd_port_config(); motion_pin_config(); //robot motion pins config // left_encoder_pin_config(); //left encoder pin config // right_encoder_pin_config(); //right encoder pin config }
//Function to Initialize PORTS void port_init() { lcd_port_config(); adc_pin_config(); motion_pin_config(); left_encoder_pin_config(); //left encoder pin config right_encoder_pin_config(); //right encoder pin config c2_encoder_pin_config(); buzzer_pin_config(); //Slider_encoder_pin_config(); servo1_pin_config(); //Configure PORTB 5 pin for servo motor 1 operation servo2_pin_config(); //Configure PORTB 6 pin for servo motor 2 operation }
//Port init for different modules void port_init(void) { motion_pin_config(); servo1_pin_config(); servo2_pin_config(); servo3_pin_config(); spi_pin_config(); lcd_port_config(); buzzer_pin_config(); left_encoder_pin_config(); right_encoder_pin_config(); adc_pin_config(); pwm_port_config(); }
void port_init(void) { lcd_port_config();//lcd pin configuration adc_pin_config(); //left_encoder_pin_config(); //left encoder pin config //right_encoder_pin_config(); //right encoder pin config DDRC = DDRC | 0x08; //Setting PORTC 3 as output PORTC = PORTC & 0xF7; //Setting PORTC 3 logic low to turnoff buzzer servo1_pin_config(); //Configure PORTB 5 pin for servo motor 1 operation servo2_pin_config(); //Configure PORTB 6 pin for servo motor 2 operation servo3_pin_config(); //Configure PORTB 7 pin for servo motor 3 operation color_sensor_pin_config();//color sensor pin configuration }
//Function to initialize ports void servo_port_init(void) { servo1_pin_config(); //Configure PORTB 5 pin for servo motor 1 operation }
void port_init_servo(void) { servo1_pin_config(); //Configure PORTB 5 pin for servo motor 1 operation servo2_pin_config(); //Configure PORTB 6 pin for servo motor 2 operation servo3_pin_config(); //Configure PORTB 7 pin for servo motor 3 operation }