Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "hardware.h"
- // Initialise the hardware
- void appInitHardware(void) {
- initHardware();
- }
- // Initialise the software
- TICK_COUNT appInitSoftware(TICK_COUNT loopStart){
- return 0;
- }
- // This is the main loop
- TICK_COUNT appControl(LOOP_COUNT loopCount, TICK_COUNT loopStart) {
- if(myUart.isRxBufferEmpty()){
- // We have no data to process. So do other things....
- }else
- {
- int ch = cin.read();
- if(ch != EOF){
- display.print( ch );
- //cout.write(ch);
- }// We have data to process so start reading it in
- }
- // -------- Start HD44780 Compatible-------
- {
- // Clear the screen:-
- display.clear();
- // A display is a 'Stream' so can use the print calls
- display.setLineWrap(TRUE);
- display.print( "this is a rather long string" );
- //display.print( 1234 );
- }
- // -------- End HD44780 Compatible-------
- // -------- Start Text to Speech-------
- // Say an English phrase
- speech.print("Soon we will command with r s 2 3 2. ");
- // -------- End Text to Speech-------
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement