matty
public c v1 · immutable#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 = 1234; string = "hello,world"; LCD_1_Start(); pos(0,0); cprintf(string); cprintf(" PSoC"); pos(1,0); cprintf("%o",count); cprintf(":"); cprintf("%d",count); cprintf(":"); cprintf("%x",count); }