-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests #104
base: junior_testing
Are you sure you want to change the base?
Tests #104
Conversation
#else //on windows | ||
void delay(int milliseconds){}; | ||
void delay(unsigned long milliseconds){}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the functions actually need to be static as well, my bad. This is to prevent any linker problems during compiling
static void delay(unsigned long milliseconds){};
all of them need to be static
looking pretty good so far to make things a little cleaner you can get rid of the duplicate #ifdef's so this: #ifdef __MK20DX256__ // Teensy Compile
#else //on windows
static void delay(unsigned long milliseconds){};
#endif
#ifdef __MK20DX256__ // Teensy Compile
#else //on windows
static void digitalWrite(int pin, bool high){};
#endif could become #ifdef __MK20DX256__ // Teensy Compile
#else //on windows
static void delay(unsigned long milliseconds){};
static void digitalWrite(int pin, bool high){};
#endif |
Are you using an IDE like Visual Studio or xcode? |
I am using an editor. I will move on and complete it on an IDE. The problem is that I do not have some header files. |
What header files are you missing? |
I tried to do something....I will be waiting for your feedback.