Skip to content
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

Thoughts on adding macros/defines or a config header file that can be used to override fake classes for Teensy, ESP etc. #64

Open
mattbaker-digital opened this issue Dec 5, 2024 · 0 comments

Comments

@mattbaker-digital
Copy link

mattbaker-digital commented Dec 5, 2024

From my understanding, the Fake instances and mocks are fixed and not easily overridable to another type which has different methods than the Arduino core library. For example, the Teensy Arduino library has Print::printf methods.

Instead of having to create a new library for other board types (as they are so similar to ArduinoFake) it would be nice if you could specify another class using defines, either directly in the build flags or in a custom ArduinoFake config header file.

Additional options might be the ARDUINO definition as a first class member for version overrides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant