D/DotMatrix 명함

DotMatrix명함

ElectricShock 2017. 6. 17. 17:47

http://www.instructables.com/id/Dot-Matrix-Business-Card/


DotMatrix명함_LCD테스트보드(873)_PICPG2C_RotatingClock.pdf

F5EOJHYFKD1LQT7 (1).pdf

F1MJV96FXP6OX75.zip



▼압축파일 안의 C코드 (dotmatrixled.c)

//////////////////////////////////////////////////////////////////

/// Name: dotmatrixled.c

/// Author: B. Gian James

/// Description:  A few lines of code to demonstrate writing to 

///               the DLO7135 Smart Dot Matrix LED.

#include <avr/io.h>

#include <util/delay.h>

#include <stdio.h>

void Print2LED(uint8_t i);

int main(void)

{

DDRD = 0xFF; // Output

DDRB = (1<<DDB0);

char msg[] = "Welcome to my Instructable!";

uint8_t i;

for (;;)

{

for(i=0;i<27; i++)

{

Print2LED(msg[i]);

_delay_ms(150);

}

for(i=0x20; i<0x80; i++)

{

Print2LED(i);

_delay_ms(150);

}

}

}

void

Print2LED(uint8_t i)

{

PORTD = (i << 2);

if (i & 0b01000000)

PORTB = (1<<PINB0);

else

PORTB = (0<<PINB0);

}