Need help with coding microcontroller based LED matrix

Thread Starter

dientudong

Joined Nov 4, 2008
6
#include "C:\Program Files\PICC\Examples\lenhmoi.h"
#define BITMAP_HEIGHT_BYTE 2
#define BITMAP_WIDTH_BIT 16
unsigned char buff_mh[BITMAP_HEIGHT_BYTE][BITMAP_WIDTH_BIT ];
void point(int8 x,int8 y)
{
unsigned char *pt;
int8 mask=0b00000001;
int16 j;
mask = mask << (y%8);
pt=&buff_mh[0][0];
j=(y/8*8+x);
pt+=j;
*pt|= mask;
}

void main()

{
while(1)
{
point(0,0);
delay_ms(500);
point(1,1);
delay_ms(500);
}
}
Please help me with the Code for ledmatrix
 

hgmjr

Joined Jan 28, 2005
9,027
Greetings dientudong,

I have moved your post to its own thread to give it better visibility to the forum community. It is best that you post your questions in their own dedicated threads rather than tacking it on to an existing thread.

hgmjr
 

beenthere

Joined Apr 20, 2004
15,819
Some additional information would be helpful - the microcontroller, the LED matrix, and the schematic. Your problems might be hardware related.
 
Top