The answer to this Problem: set the pin as input by using pinmode, then activate the pullup by using a.digitalWrite(pin,1)
How to enable internal Arduino Pull-Ups when controlled by Matlab
2 views (last 30 days)
Show older comments
Hi,
I got a project with an Arduino Mega 2560, controlled by Matlab. For some of the Input Pins, I need the internal Pull-Up resistors. How can I activate these?
In te Arduino IDE, you can do this by using "pinMode(pinnumber, INPUT_PULLUP)", but in Matlab no such command works.
Maybe somebody can help me.
Best regards, Andi
Answers (0)
See Also
Categories
Find more on Arduino Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!