Arduino Pro Micro - switch off LEDsAll the differences between Arduinos: Pro Mini & Pro MicroPro Micro clone worked fine, now RxLED stays on and can't program itArduino Pro Micro troublesPro Micro - Measuring voltage between two pins, without using GNDAvoid a Pro Micro waking up a PC?PS2 Keyboard and sending keystrokes between a Leonardo and several pro micros3.3 V Pro Micro clones flashing LEDs after 1200 bit/s touchArduino pro micro might be brickedArduino Pro Micro TX and RX leds flash quikly while power drawn from VCC pinKeyboard.h: No such file or directory - Arduino pro micro (leonardo)

Comment dit-on « I’ll tell you what » ?

Can a wire having a 610-670 THz (frequency of blue light) AC frequency supply, generate blue light?

Best strategy for UK visa for a school trip (travelling alone or accomanpied child)?

Mother abusing my finances

Glitch in ac sinewave interfering with phase cut dimming

I think I may have violated academic integrity last year - what should I do?

Is there an explanation for Austria's Freedom Party virtually retaining its vote share despite recent scandal?

How many chess players are over 2500 Elo?

Tabulated absorption spectra of greenhouse gases?

What are these (utility?) boxes at the side of the house?

Infinitely many hats

I unknowingly submitted plagiarised work

Why are C64 games inconsistent with which joystick port they use?

How can I find where certain bash function is defined?

How to properly maintain eye contact with people that have distinct facial features?

Break equation in parts

Windows 10 Programs start without visual Interface

Is my router's IP address really public?

Automatic calculation of line orientations in QGIS

Looking after a wayward brother in mother's will

Is floating in space similar to falling under gravity?

How to verify sticky delta property on a stochastic volatility model

Uses of T extends U?

Ticket sales for Queen at the Live Aid



Arduino Pro Micro - switch off LEDs


All the differences between Arduinos: Pro Mini & Pro MicroPro Micro clone worked fine, now RxLED stays on and can't program itArduino Pro Micro troublesPro Micro - Measuring voltage between two pins, without using GNDAvoid a Pro Micro waking up a PC?PS2 Keyboard and sending keystrokes between a Leonardo and several pro micros3.3 V Pro Micro clones flashing LEDs after 1200 bit/s touchArduino pro micro might be brickedArduino Pro Micro TX and RX leds flash quikly while power drawn from VCC pinKeyboard.h: No such file or directory - Arduino pro micro (leonardo)













4















I am using a Arduino Pro Micro as a keyboard (USB HID device). Each time I press a key, the RX LED and TX LED light up. Can I switch them off in software?










share|improve this question


























    4















    I am using a Arduino Pro Micro as a keyboard (USB HID device). Each time I press a key, the RX LED and TX LED light up. Can I switch them off in software?










    share|improve this question
























      4












      4








      4








      I am using a Arduino Pro Micro as a keyboard (USB HID device). Each time I press a key, the RX LED and TX LED light up. Can I switch them off in software?










      share|improve this question














      I am using a Arduino Pro Micro as a keyboard (USB HID device). Each time I press a key, the RX LED and TX LED light up. Can I switch them off in software?







      arduino-pro-micro






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 13 at 12:59









      qubitqubit

      6815




      6815




















          2 Answers
          2






          active

          oldest

          votes


















          2














          Kind of.



          You would need to edit the pins_arduino.h file for the Pro Micro board to change the definitions of the TXLED0, TXLED1, RXLED0, RXLED1 and TX_RX_LED_INIT macros.



          You want them to all be defined, but empty.



          #undef TXLED0
          #undef TXLED1
          #undef RXLED0
          #undef RXLED1
          #undef TX_RX_LED_INIT

          #define TXLED0
          #define TXLED1
          #define RXLED0
          #define RXLED1
          #define TX_RX_LED_INIT


          That will remove the current definitions, and then create new empty definitions. Without the empty definitions, you will get errors when compiling.






          share|improve this answer






























            3














            Kind of.



            You don't have to change pins_arduino.h.

            Try the LED_BUILTIN_TX and the LED_BUILTIN_RX.

            The pins are turned on and off by the code for the SerialUSB port. That can not be changed without changing the Arduino libraries. Setting that pin to INPUT in your sketch in the setup() function will turn them off:



            pinMode(LED_BUILTIN_TX,INPUT);
            pinMode(LED_BUILTIN_RX,INPUT);


            If you have troubles with the LED_BUILTIN_TX and the LED_BUILTIN_RX, then you can use this as well:



            bitClear(DDRD,5);
            bitClear(DDRB,0);


            The code for the SerialUSB port still writes to that pin, but once they are set as INPUT, that code will turn on and off the pullup resistor. That is no problem since those leds are connected to VCC.



            To turn them on is also possible, but then those pins needs to be OUTPUT and LOW. They will not stay on when the SerialUSB port is used.






            share|improve this answer

























              Your Answer






              StackExchange.ifUsing("editor", function ()
              return StackExchange.using("schematics", function ()
              StackExchange.schematics.init();
              );
              , "cicuitlab");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "540"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2farduino.stackexchange.com%2fquestions%2f63446%2farduino-pro-micro-switch-off-leds%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2














              Kind of.



              You would need to edit the pins_arduino.h file for the Pro Micro board to change the definitions of the TXLED0, TXLED1, RXLED0, RXLED1 and TX_RX_LED_INIT macros.



              You want them to all be defined, but empty.



              #undef TXLED0
              #undef TXLED1
              #undef RXLED0
              #undef RXLED1
              #undef TX_RX_LED_INIT

              #define TXLED0
              #define TXLED1
              #define RXLED0
              #define RXLED1
              #define TX_RX_LED_INIT


              That will remove the current definitions, and then create new empty definitions. Without the empty definitions, you will get errors when compiling.






              share|improve this answer



























                2














                Kind of.



                You would need to edit the pins_arduino.h file for the Pro Micro board to change the definitions of the TXLED0, TXLED1, RXLED0, RXLED1 and TX_RX_LED_INIT macros.



                You want them to all be defined, but empty.



                #undef TXLED0
                #undef TXLED1
                #undef RXLED0
                #undef RXLED1
                #undef TX_RX_LED_INIT

                #define TXLED0
                #define TXLED1
                #define RXLED0
                #define RXLED1
                #define TX_RX_LED_INIT


                That will remove the current definitions, and then create new empty definitions. Without the empty definitions, you will get errors when compiling.






                share|improve this answer

























                  2












                  2








                  2







                  Kind of.



                  You would need to edit the pins_arduino.h file for the Pro Micro board to change the definitions of the TXLED0, TXLED1, RXLED0, RXLED1 and TX_RX_LED_INIT macros.



                  You want them to all be defined, but empty.



                  #undef TXLED0
                  #undef TXLED1
                  #undef RXLED0
                  #undef RXLED1
                  #undef TX_RX_LED_INIT

                  #define TXLED0
                  #define TXLED1
                  #define RXLED0
                  #define RXLED1
                  #define TX_RX_LED_INIT


                  That will remove the current definitions, and then create new empty definitions. Without the empty definitions, you will get errors when compiling.






                  share|improve this answer













                  Kind of.



                  You would need to edit the pins_arduino.h file for the Pro Micro board to change the definitions of the TXLED0, TXLED1, RXLED0, RXLED1 and TX_RX_LED_INIT macros.



                  You want them to all be defined, but empty.



                  #undef TXLED0
                  #undef TXLED1
                  #undef RXLED0
                  #undef RXLED1
                  #undef TX_RX_LED_INIT

                  #define TXLED0
                  #define TXLED1
                  #define RXLED0
                  #define RXLED1
                  #define TX_RX_LED_INIT


                  That will remove the current definitions, and then create new empty definitions. Without the empty definitions, you will get errors when compiling.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 13 at 13:08









                  MajenkoMajenko

                  69.7k43582




                  69.7k43582





















                      3














                      Kind of.



                      You don't have to change pins_arduino.h.

                      Try the LED_BUILTIN_TX and the LED_BUILTIN_RX.

                      The pins are turned on and off by the code for the SerialUSB port. That can not be changed without changing the Arduino libraries. Setting that pin to INPUT in your sketch in the setup() function will turn them off:



                      pinMode(LED_BUILTIN_TX,INPUT);
                      pinMode(LED_BUILTIN_RX,INPUT);


                      If you have troubles with the LED_BUILTIN_TX and the LED_BUILTIN_RX, then you can use this as well:



                      bitClear(DDRD,5);
                      bitClear(DDRB,0);


                      The code for the SerialUSB port still writes to that pin, but once they are set as INPUT, that code will turn on and off the pullup resistor. That is no problem since those leds are connected to VCC.



                      To turn them on is also possible, but then those pins needs to be OUTPUT and LOW. They will not stay on when the SerialUSB port is used.






                      share|improve this answer





























                        3














                        Kind of.



                        You don't have to change pins_arduino.h.

                        Try the LED_BUILTIN_TX and the LED_BUILTIN_RX.

                        The pins are turned on and off by the code for the SerialUSB port. That can not be changed without changing the Arduino libraries. Setting that pin to INPUT in your sketch in the setup() function will turn them off:



                        pinMode(LED_BUILTIN_TX,INPUT);
                        pinMode(LED_BUILTIN_RX,INPUT);


                        If you have troubles with the LED_BUILTIN_TX and the LED_BUILTIN_RX, then you can use this as well:



                        bitClear(DDRD,5);
                        bitClear(DDRB,0);


                        The code for the SerialUSB port still writes to that pin, but once they are set as INPUT, that code will turn on and off the pullup resistor. That is no problem since those leds are connected to VCC.



                        To turn them on is also possible, but then those pins needs to be OUTPUT and LOW. They will not stay on when the SerialUSB port is used.






                        share|improve this answer



























                          3












                          3








                          3







                          Kind of.



                          You don't have to change pins_arduino.h.

                          Try the LED_BUILTIN_TX and the LED_BUILTIN_RX.

                          The pins are turned on and off by the code for the SerialUSB port. That can not be changed without changing the Arduino libraries. Setting that pin to INPUT in your sketch in the setup() function will turn them off:



                          pinMode(LED_BUILTIN_TX,INPUT);
                          pinMode(LED_BUILTIN_RX,INPUT);


                          If you have troubles with the LED_BUILTIN_TX and the LED_BUILTIN_RX, then you can use this as well:



                          bitClear(DDRD,5);
                          bitClear(DDRB,0);


                          The code for the SerialUSB port still writes to that pin, but once they are set as INPUT, that code will turn on and off the pullup resistor. That is no problem since those leds are connected to VCC.



                          To turn them on is also possible, but then those pins needs to be OUTPUT and LOW. They will not stay on when the SerialUSB port is used.






                          share|improve this answer















                          Kind of.



                          You don't have to change pins_arduino.h.

                          Try the LED_BUILTIN_TX and the LED_BUILTIN_RX.

                          The pins are turned on and off by the code for the SerialUSB port. That can not be changed without changing the Arduino libraries. Setting that pin to INPUT in your sketch in the setup() function will turn them off:



                          pinMode(LED_BUILTIN_TX,INPUT);
                          pinMode(LED_BUILTIN_RX,INPUT);


                          If you have troubles with the LED_BUILTIN_TX and the LED_BUILTIN_RX, then you can use this as well:



                          bitClear(DDRD,5);
                          bitClear(DDRB,0);


                          The code for the SerialUSB port still writes to that pin, but once they are set as INPUT, that code will turn on and off the pullup resistor. That is no problem since those leds are connected to VCC.



                          To turn them on is also possible, but then those pins needs to be OUTPUT and LOW. They will not stay on when the SerialUSB port is used.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Apr 13 at 21:37

























                          answered Apr 13 at 14:15









                          JotJot

                          2,9651619




                          2,9651619



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Arduino Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2farduino.stackexchange.com%2fquestions%2f63446%2farduino-pro-micro-switch-off-leds%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Tamil (spriik) Luke uk diar | Nawigatjuun

                              Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                              Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?