====== comPuts ====== ''void comPuts (u8 comCh, u8* src, u16 length)'' |comCh : Channel number | |src: Pointer to data that should be sent | |length: The amount of data (in bytes) to send | Transmits length bytes of data from memory address src out channel comCh. { #include "moacon500.h" void cmain(void) { char* c = "Hello World!"; openCom(0, 115200, C8N1); // Channel 0, 115200 Baud, // data bits: 8, no parity, stop bits: 1 while (1) // Repeat forever { comPuts(0, c, 5); // Transmits "Hello" on channel 0 } } } The example program above prints 5 characters, "Hello", from the string stored at address c. [[MOACON:index#System_Library:|go MOACON home]]