pcb and initial code from https://github.com/das-labor/borgware-2d.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
379 B
23 lines
379 B
14 years ago
|
#include <inttypes.h>
|
||
|
#include "../config.h"
|
||
|
#include "../pixel.h"
|
||
|
#include "../util.h"
|
||
|
|
||
|
void rowwalk(uint8_t times,uint8_t speed)
|
||
|
{
|
||
|
uint8_t i, j,k,h;
|
||
|
|
||
|
for(k=0;k<times;k++){
|
||
|
clear_screen(0);
|
||
|
for (h=0;h<NUM_ROWS;h++){
|
||
|
for (i=0;i<NUM_COLS;i++){
|
||
|
for (j=0;j<NUM_ROWS;j++){
|
||
|
setpixel( (pixel){i,j},(h==j) ? 1:0);
|
||
|
}
|
||
|
}
|
||
|
wait(speed*10);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|