suria sarath
Published © TAPR-OHL

Propeller

Single LED display.

IntermediateWork in progress536
Propeller

Schematics

propeller_bb.jpg

Code

propeller

C/C++
prototype fixed with the motor. when motor rotate we can see a char "s" . we can use propeller as display
/*
 * propeller.c
 *
 * Created: 7/28/2015 5:57:20 AM
 *  Author: suriasarath
 */ 


#include <avr/io.h>
#define F_CPU 1000000UL
#include <util/delay.h>

int main(void)
{
	DDRD=0xff;
    while(1)
    {
		PORTD=0X00;
		_delay_ms(30);
		PORTD=0X00;
		_delay_ms(30);
		PORTD=0X00;
		_delay_ms(30);
		PORTD=0X00;
		_delay_ms(30);
		PORTD=0X00;
		_delay_ms(30);
        PORTD=0x7f;
		_delay_ms(30);
		PORTD=0x80;
		_delay_ms(30);
		PORTD=0x80;
		_delay_ms(30);
		PORTD=0x80;
		_delay_ms(30);
		PORTD=0x80;
		_delay_ms(30);
		PORTD=0x7e;
		_delay_ms(30);
		PORTD=0x01;
		_delay_ms(30);
		PORTD=0x01;
		_delay_ms(30);
		PORTD=0x01;
		_delay_ms(30);
		PORTD=0x01;
		_delay_ms(30);
		PORTD=0xfe;
		_delay_ms(30);
		PORTD=0X00;
		_delay_ms(30);
		PORTD=0X00;
		_delay_ms(30);
		   PORTD=0x7e;
		   _delay_ms(30);
		   PORTD=0x01;
		   _delay_ms(30);
		   PORTD=0x01;
		   _delay_ms(30);
		   PORTD=0x01;
		   _delay_ms(30);
		   PORTD=0x01;
		   _delay_ms(30);
		   PORTD=0x7e;
		   _delay_ms(30);
		   PORTD=0x80;
		   _delay_ms(30);
		   PORTD=0x80;
		   _delay_ms(30);
		   PORTD=0x80;
		   _delay_ms(30);
		   PORTD=0x80;
		   _delay_ms(30);
		   PORTD=0x7f;
		   _delay_ms(30);
		
	//TODO:: Please write your application code 
    }
}

Credits

suria sarath
8 projects • 26 followers
Embedded software programmer at Lanware Solutions
Contact

Comments

Please log in or sign up to comment.