WIP: keep local changes before merging remote

This commit is contained in:
Filipriec
2025-11-13 14:42:47 +01:00
parent 915c573b27
commit 3c11e1dff8
9 changed files with 320 additions and 47 deletions

28
cvicenie_5/Uart.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef __UART_H
#define __UART_H
#include "mbed.h"
// class Led
class Uart
{
private:
void rxInterrupt();
public:
//! Constructor
Uart(PinName rx, PinName tx, int baud);
//! Destructor
~Uart();
bool isCharReceived();
char getReceivedChar();
void writeChar(char c);
UnbufferedSerial* getSerial();
private:
UnbufferedSerial serial;
volatile char received_character;
volatile bool received;
};
#endif