Sille Van Landschoot / Mbed 2 deprecated mbed_slave_full

Dependencies:   mbed

Revision:
4:f537311ddc53
Child:
5:b73ea174e997
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/memory.h	Tue Oct 14 09:10:45 2014 +0000
@@ -0,0 +1,21 @@
+#ifndef MEMORY_HEADER
+#define MEMORY_HEADER
+
+class Memory {
+    
+    public:
+        const static int MEMORY_SIZE = 16;
+    
+    private:
+        int memory[MEMORY_SIZE];
+    
+    public:
+        Memory();
+        void reset();
+        void set(int address, int value);
+        int get(int address);
+        void print();
+};
+
+
+#endif
\ No newline at end of file