From 8cc237f1fc69682208a6c6014b9ff4318cf07392 Mon Sep 17 00:00:00 2001 From: GroG Date: Thu, 3 Nov 2016 21:01:58 -0700 Subject: [PATCH] Down to 7 Compilation Errors !!! --- MrlMsg.h | 1 + virtual/Arduino.h | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/MrlMsg.h b/MrlMsg.h index 1107a49..78084c2 100644 --- a/MrlMsg.h +++ b/MrlMsg.h @@ -4,6 +4,7 @@ #include "ArduinoMsgCodec.h" #include "LinkedList.h" #include "MrlIo.h" +#include "Arduino.h" // ------ error types ------ diff --git a/virtual/Arduino.h b/virtual/Arduino.h index 6bb7ba0..2a747a4 100644 --- a/virtual/Arduino.h +++ b/virtual/Arduino.h @@ -1,3 +1,5 @@ +#ifndef VIRTUAL_ARDUINO_H +#define VIRTUAL_ARDUINO_H #define NULL 0 #define TWCR 0 @@ -5,9 +7,19 @@ #define TCCR1B 0 #define TCCR2B 0 +typedef unsigned char byte; + +#include "Serial.h" +#include "Servo.h" +#include "HardwareSerial.h" + unsigned long micros(); unsigned long millis(); void digitalWrite(int pin, int value); void analogWrite(int pin, int value); void pinMode(int pin, int value); + + + +#endif VIRTUAL_ARDUINO_H