All pastes #1653988 Raw Edit

誰か

public text v1 · immutable
#1653988 ·published 2009-11-02 23:29 UTC
rendered paste body
#include	<m8c.h>
#include	<stdio.h>
#include	<string.h>
#include	"PSoCAPI.h"

FLASH char *string;

int putchar(char c)
{
	char str[] = " ";
	strncpy( str , &c , 1 );
	LCD_1_PrString( str );
	return c;
}

void pos(char x,char y){
	LCD_1_Position(x,y);
}
void main(void)
{
	int count = 0;
	string = "123456789ABCDEF";
	LCD_1_Start();
	
	while(1){
		pos(0,0);
		cprintf(string);
		pos(1,0);
		cprintf("%d",count);cprintf(" ");cprintf("%X[H]",count);
		
		count++;
	}
}