31 void error (
const PropWare::ErrorCode err);
33 const int32_t BAUD_RATE = 115200;
34 const int32_t DELAY = 200;
44 PropWare::ErrorCode err;
49 char numberPattern[] = {
61 char string[] =
"Hello world! This is my most favoritest sentence ever!!!\r\n";
73 uart.
puts(numberPattern);
74 waitcnt(DELAY * MILLISECOND + CNT);
78 waitcnt(DELAY * MILLISECOND + CNT);
82 void error (
const PropWare::ErrorCode err) {
86 debugLEDs.write((uint32_t) err);
87 waitcnt(100*MILLISECOND);
89 waitcnt(100*MILLISECOND);
virtual ErrorCode set_data_width(const uint8_t dataWidth)
Set the number of bits for each word of data.
The PropWare::SimplePort is the recommended way to use data ports on the Propeller. All pins are consecutive, which allows for some simple shortcuts in reading, writing, and initialization.
void puts(const char string[])
Send a null-terminated character array. Though this method could be created using put_char...
void set_baud_rate(const int32_t baudRate)
Set the baud rate.
virtual void set_parity(const UART::Parity parity)
Set the parity configuration.
ErrorCode set_stop_bit_width(const uint8_t stopBitWidth)
Set the number of stop bits used.
An easy-to-use class for simplex (transmit only) UART communication.