#include <m8c.h> // part specific constants and macros #include "PSoCAPI.h" // PSoC API definitions for all User Modules
void main() {BYTE str[ ]="User Module"; // Define "RAM" based string LCD_1_Start(); // Initialize LCD hardware LCD_1_Position(1,2); // Position cursor @ row 0, col 4 LCD_1_PrCString("PsoC LCD"); // Print a constant "ROM" string LCD_1_Position(0,4); // Position cursor @ row 1, col 2 LCD_1_PrString(str); // Print "RAM" based string.
while(1) { ; } } 这是代码,已经最简到只打印这两句到lcd,而只有PsoC LCD可以显示,迷惑中~~
|