Need help with coding microcontroller based LED matrix

Discussion in 'Programmer's Corner' started by dientudong, Jan 25, 2009.

  1. dientudong

    Thread Starter New Member

    Nov 4, 2008
    6
    0
    #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
     
  2. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    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
     
  3. beenthere

    Retired Moderator

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