دستور switch بر اساس مقدار یک مقدار حالت های مختلف را بررسی کرده و دستورات قسمت مربوطه را اجرا خواهد کرد. ساختار کلی دستور switch به صورت زیر است:
int number = Console.ReadLine();
switch (number)
{
case 1:
Console.WriteLine("عدد وارد شده 1میباشد");
break;
case 2:
Console.WriteLine("عدد...
Here is some code to demonstrate using a single stepper motor, an Uno, the Adafruit Motor Shield and a three-way switch. The middle position of the switch is OFF. One side rotates the motor until stopped and the other side rotates the motor ±45°. I built this with one of my students to allow...
The Sonoff Basic wi-fi smart switch allows an electric device to be turned on and off.
The post Sonoff Basic Wi-Fi Smart Switch — Untangling the Ropes appeared first on ElectroSchematics.com.
ادامه مطلب...
Switching Theory allows us to understand the operation and relationship between Boolean Algebra and two-level logic functions with regards to Digital Logic Gates. Switching theory can be used to further develop the theoretical knowledge and concepts of digital circuits when viewed as an...