How to enable internal Arduino Pull-Ups when controlled by Matlab

2 views (last 30 days)
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
  1 Comment
Andreas
Andreas on 29 Oct 2013
The answer to this Problem: set the pin as input by using pinmode, then activate the pullup by using a.digitalWrite(pin,1)

Sign in to comment.

Answers (0)

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!