Buttons - matrix - array - setInterval - CSS (for beginners)

Hi Guys,

I've learned a lot since I've joined this forum, thanks to you all.

I'm still beginner but I would like to share some of what I've learned.

its a simple use case showing beginners (like me) how to make a button to send different cc messages based on the selection of the switch.

It has 2 Examples :

  1. using buttons (credit to @ClelsonLopes)
  2. using matrix

Through that you will see some uses of:

  • matrix
  • css
  • html
  • variables
  • array
  • JS{}
  • setInterval function
  • send function

buttons & matrix.json (18.1 KB)

thanks.

6 Likes

Thanks for sharing your patch
I think there's a small mistake in your 2d array,
it should look like this

[
  [ 1, 4, 7, 11 ],
  [ 2, 8, 12, 15 ],
  [ 6, 7, 8, 9 ],
  [ 1, 2, 5, 7 ]
]