Arduino Switch-Case statement

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 9

  • @ehsanshakil80
    @ehsanshakil80 2 года назад

    Better to change values for switch cases like adding increment variable. If you use sensors or button then it requires variable. Such as int i=0; i ++; switch (i){ case 0: // do something; break ; case 1: // do another thing; break; default: // …….; i =0; break;} it was good video. Keep it up. Just need little modification.

  • @casperjuniorviriri7177
    @casperjuniorviriri7177 6 лет назад

    thank you this made the most sense about cases i really do appreciate it got it working fine!

  • @michaeldeloso9042
    @michaeldeloso9042 7 месяцев назад

    Good day Sir 👋
    How to setup code for led fast changing colors blinks with the speed of music beat or noise and automatically turn to super slow mode when there is no music or noise detected on the surroundings?

  • @bishop34644
    @bishop34644 2 года назад

    How would you change num value with different inputs

  • @joshuamercier1442
    @joshuamercier1442 3 года назад

    And you have no external input to change the case # like buttons

  • @shabukajla3876
    @shabukajla3876 4 года назад

    Nice tutorial

  • @obsidiantechz1371
    @obsidiantechz1371 4 года назад

    Please Show The circuit to know which pins to connect

    • @jaysernal8701
      @jaysernal8701 4 года назад

      connect the anode of the led to 220 ohms resistor and then connect it to the pin 10of the arduino and the cathode of led to the GND

  • @hamedj9053
    @hamedj9053 7 лет назад

    thanks