Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<msp430x14x.h>
- #include "UART.h"
- #include "LCD.h"
- #incude "watchdog.h"
- #include "buttons.h"
- void main(void)
- {
- disableWDT();
- initLCD();
- initButtons();
- clearDisplay();
- initUart(4800);
- while(1)
- {
- if(isB1Pressed())
- {
- sendStringToUART("Hello, world!");
- }
- while(!isBufferEmpty())
- {
- sendChar(Buffer[bufferStart]);
- bufferStart= (++bufferStart)%30;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement