- الحصول على الرابط
- X
- بريد إلكتروني
- التطبيقات الأخرى
المشاركات
تمرين 11 (استخدام شاشة ال lcd)
- الحصول على الرابط
- X
- بريد إلكتروني
- التطبيقات الأخرى
/* Arduino Starter Kit example Project 11 - Crystal Ball This sketch is written to accompany Project 11 in the Arduino Starter Kit Parts required: - 220 ohm resistor - 10 kilohm resistor - 10 kilohm potentiometer - 16x2 LCD screen - tilt switch created 13 Sep 2012 by Scott Fitzgerald http://www.arduino.cc/starterKit This example code is part of the public domain. */ // include the library code: #include <LiquidCrystal.h> // initialize the library with the numbers of the interface pins LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // set up a constant for the tilt switch pin const int switchPin = 6; // variable to hold the value of the switch pin int switchState = 0; // variable to hold previous value of the switch pin int prevSwitchState = 0; // a variable to choose which reply from the crystal ball int reply; void setup() { // set up the num...
ارديونو تمرين 10 (تشغيل المحرك والتحكم باتجاهه)
- الحصول على الرابط
- X
- بريد إلكتروني
- التطبيقات الأخرى