Hurray, I confirm if I redefine all the functions in a core file, then override works. I copied the digital.c from core to the project folder and I can modify the functions without error.
One undesired side effect is I have to keep a copy of...
I posted a message about failure when redefining pinMode and digitalWrite. After rereading your comment, I think I have to redefine ALL the functions in a file. Let me try that and come back. Stay tuned.
I am thinking you were thinking of "variants". Arduino IDE lets one to add variants for the existing boards, with slight modifications to pins definitions and a few core files. I'm going down this path now. It is a mix of options 3 and 4. I will...
After spending a bit more into library sources, my learnings are:
if library doesn't change pin directions, then we are good. For example, FastLED library works without problems. I think LiquidCrystal also should work (I think it doesn't read...
Thank you for your comment.
Would you be able to explain this a bit more? I was thinking of a teensy user modifying the library source files they downloaded (both in Arduino Library/ folder and/or platformio's library folders). This means...
It turns out we need the override :( - There are existing Arduino libraries (for example LiquidCrystal) that use pinMode(), digitalWrite(), digitalRead().
Hi,
I'm working on a "yet another" adapter board that converts Teensy 4.1 to Arduino Mega 2560 form-factor, with true 5V push-pull signaling. 5V push-pull is done with the circuitry that sits between Teensy 4.1 and the outside world. My goal is...