Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: reuse of unused RX pins

  1. #1

    reuse of unused RX pins

    hi there,

    i need several MIDI outputs for a controller (4 for a start) but no inputs. since i am a bit low on digital pins, can i reuse the RX pins of the respective Serial lines for other things? simply declare them as OUTPUT? do i need to do anything special in the midi library to turn them "off"? (so the buffer is not filled up with garbage for example) or is this not possible?

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,224
    pinMode() after Serial#.begin() will reconfigure the pin - not sure if it will disassociate the Serial hardware fully?

  3. #3
    Senior Member
    Join Date
    Dec 2013
    Location
    East Stroudsburg PA.
    Posts
    285
    Try:
    Serial1.end();
    Serial2.end();
    Serial3.end();
    then
    pinMode(Pin, OUTPUT);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •