Arduino – How to use switch, case and default
Learn how to use switch, case and default for Arduino to tidy and simplify your decision making code.
Amongst my favourite projects are those that use electronics and code. These blog posts will feature Arduino, Raspberry Pi Pico and lots of peripherals.
Learn how to use switch, case and default for Arduino to tidy and simplify your decision making code.
What are conditionals? Conditionals are branches in your code. The check to see if a specific criteria is met and, if it is, a specified set of code will run.…
What are operators? Operators are special characters, or sets of charactors, that perform a specific action to elements of your program such as variables. You'll already be familiar with common…
Previous related posts: Choosing your first Arduino How To Install, Set Up and Upload Code How to code your Arduino How to communicate with serial What are variables? Variables used…
What is serial communication? As an Arduino beginner, all you need to know is that serial communication allows text to be transferred between your Arduino and other devices. More technically,…
Why it's important to understand the basics of Arduino coding It's an all too common sight on the forums and Facebook groups to see people who are copying and pasting…
The Arduino IDE The Arduino IDE (Integrated Development Environment) is where you'll write your code. It's also where your code will be processed and sent to your Arduino. There are…
What's an Arduino board? Before we get to choosing your first Arduino, it makes sense to cover exactly what an Arduino board is. An Arduino board is an electronic circuit…
Why make things move? Electronics projects can serve many purposes but I'm sure most of us will agree that the coolest projects make things move! When we make things move…