![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Gets messages form the pc and translates it to I2C and back.
Dependencies: DevInterfaces I2Cinterfaces MCP4725 mbed
Diff: Writer.h
- Revision:
- 2:2330ad8b1baa
- Parent:
- 1:8ba039abd9b8
diff -r 8ba039abd9b8 -r 2330ad8b1baa Writer.h --- a/Writer.h Wed May 18 11:35:45 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -#pragma once - -#include "mbed.h" -#include <string> -#include "Translator.h" - -// Static class that will write messages to -class Writer { -private: - // Private constructor, no instance can be created - Writer(); - -public: - // Sends a message to the computer using the given info and used dacValue as DAC value - static bool Send(const Translator::MessageInfo msg, int dacValue); - // Sends an error message to the computer using the given info, also makes the LED red! - static bool SendError(const Translator::MessageInfo msg); -}; \ No newline at end of file