Arrays Part 3 - Using Arrays to Control Arduino Pins

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 มิ.ย. 2024
  • This time, we'll see a practical use for arrays in Arduino by using them to control the Arduino's pins. Let's dive in, write some code, and test the circuit. ***Please hit the subscribe button on the lower right of the video!
    Like this kind of stuff? Check out learnarduinonow.com for more Arduino related projects and info!

ความคิดเห็น • 13

  • @EljayRadiology
    @EljayRadiology ปีที่แล้ว +1

    Love the way you explained array indexing!

  • @sennabullet
    @sennabullet 2 หลายเดือนก่อน

    A good introduction for beginners! Thanks for your effort to make this video.

    • @CircuitCrush
      @CircuitCrush  2 หลายเดือนก่อน

      Glad it was helpful!

    • @CircuitCrush
      @CircuitCrush  2 หลายเดือนก่อน

      Glad it was helpful!

  • @kemaketseforkssebitiela3089
    @kemaketseforkssebitiela3089 7 หลายเดือนก่อน

    This is too good and informative

    • @CircuitCrush
      @CircuitCrush  6 หลายเดือนก่อน

      I totally appreciate that!

  • @richardcrackel1521
    @richardcrackel1521 5 หลายเดือนก่อน

    I dont understand the benefit of using an array, vs just initializing individual variables.

    • @Thats_Mr_Random_Person_to_you
      @Thats_Mr_Random_Person_to_you 5 หลายเดือนก่อน

      This is purely a first principles 'look' at using an array for this use.
      Arrays can become more complex in usage with other concepts like loops etc..
      You can make code work with a totally arbitrary array length such that you don't need to edit 100 line when you add an additional element to the array.
      You can made arrays multidimensional so each element of an array is itself an array of values (that would be called a 2d array, and you can keep going with 3d arrays etc..)
      In a simple case as shown, there is no difference / benefit. But in order to do the complex, you need to start with the basic.

    • @CircuitCrush
      @CircuitCrush  5 หลายเดือนก่อน

      That's right, the point was to offer an introduction to arrays and get the basics of how they work.

    • @jo0ls
      @jo0ls 5 หลายเดือนก่อน

      On most chips it’s a false economy to use byte. You will load your byte on a 32 bit bus and maybe store it in a 128 bit register on the CPU to do math on it, so it just uses the same space as an integer anyway. The compiler will probably ignore you and use an integer. But yeah, I guess on an Arduino you can probably use Byte.

  • @naboulsikhalid7763
    @naboulsikhalid7763 4 หลายเดือนก่อน

    this is not simple, as you mentioned when you want to use an array, you can't use it without for loop(i, i , i++) They all go hand in hand, so try to do better. thank you

    • @CircuitCrush
      @CircuitCrush  3 หลายเดือนก่อน +1

      The point of this video is to teach the basics on arrays. The next video in the series does use for loops.