Это видео недоступно.
Сожалеем об этом.

Arduino Switch Case - SO EASY!

Поделиться
HTML-код
  • Опубликовано: 11 мар 2024
  • Check a value, do different stuff depending on the value.

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

  • @garypowell2016
    @garypowell2016 3 месяца назад +2

    Thank You James! Someone who explains this stuff in plane English. First time I've understood what you can do with Switch Case. Subscribed.

    • @E4E
      @E4E  3 месяца назад +1

      Thanks a lot, @garypowell2016. Great feedback, much appreciated. Anything else you want making, please let me know!
      The variable that's switched can be in all sorts of places or contexts, it's a great piece of code. All the best, James.

    • @garypowell2016
      @garypowell2016 3 месяца назад +1

      @@E4E Quickest reply I've ever had! I'm very new to everything electronics & Arduino. I got interested in solar panels last Autumn. Did a few searches and came across a device called Arduino. Since then I've had a lot of fun making my own blinking Christmas lights, an ESP32 camera with pictures coming live on to my laptop, a Squash ghosting board started with an Infra Red remote control - which shows the next position a player has to move to - with 10 different timings of a ghost. At present I'm having headaches trying to make a reaction test for Squash players - made with Pro-minis & NRF24L01 radio control in each LED lit button. I am going to try to get it to start with a remote control. At the moment I'm testing each part of the starting sequence. So far I've managed to use an IR remote to turn an LED on & combined that with button toggle code so that the button press turns the LED off - I then hope I can use this press as an input which I can send over the NRF24L01 writing pipe to another LED lit button. I think I might have bitten off more than I can chew with this one!

    • @E4E
      @E4E  3 месяца назад

      @garypowell2016 I very much doubt you've bitten off too much.
      I start with a decent flow chart. I don't understand squash much but had a Google. Feel free to email maths4engineers on g mail com, and I'll see how I can help! Cheers.

    • @E4E
      @E4E  3 месяца назад

      @garypowell2016 Oh and nice one, for the circuits made! Have a look at my shorts if you like, loads of daft fun stuff there.

    • @garypowell2016
      @garypowell2016 3 месяца назад +1

      @@E4E Cheers James I'll let you know how I get on. Thanks.