עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

momentor +delay

Featured Replies

פורסם

שלום אני צריך להגדיר לחצן מומנטור

שבזמן לחיצה לד 1 עובד קבוע

והלד השני מהבהב לשני שניות

אני עשיתי תוכנית אני לא יודע בדיוק מה לא בסדר איתה

משהוא יכול לעזור לי ?

int swich = 7 ;

int momntor = 8;

int ledPin = 13;

int ledPin1= 9;

boolean lastButton = LOW;

boolean currentButton = LOW;

boolean ledOn = false;

void setup()

{

pinMode(swich, INPUT);

pinMode(momntor, INPUT);

pinMode(ledPin, OUTPUT);

pinMode(ledPin1, OUTPUT);

}

boolean debounce(boolean last)

{

boolean current = digitalRead(momntor);

if (last != current)

{

delay(5);

current = digitalRead(momntor);

}

return current;

}

void loop()

{

currentButton = debounce(lastButton);

if (lastButton == LOW && currentButton == HIGH)

{

ledOn = !ledOn && ledPin1 == HIGH;

}

lastButton = currentButton;

digitalWrite(ledPin, ledOn);

}

פורסם

יעזור (גם לנו ובעיקר לך) אם תספר מה התוכנה כן עושה. מה קורה כשאתה לוחץ על הכפתור? יכול להיות שאם תחשוב על זה תוכל להבין בעצמך איפה הבעיה...

פורסם
  • מחבר

:xyxthumbs:

אין בעיה אני עכשיו מסתקל בהודע שלי

אני צריך לעשות כמה ממסרים 5 כפתורים ON.\OF וכפתור מומנטור כל כפתור מפעיל לד + ממסר

במערכת

המערכת יש 4 ערוצי קול שאם הממסרים אנכנו סגרים מעגל ויש לנו אנתרקום

זתומרת 4 ערוצי קל וערוץ ראשי שפתח את כל הערוצים לחצן חמישי

לחצן המומנטור זה לחצן קריזה שברגע שלחצים יודעים מאיזה ערוץ הוא לחץ ו לפי הלדים שיש

עכשיו התכנית שהעלתי היא לא המלאה התכנית המלאה בעבודה

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.