עבור לתוכן
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.

בעיה בתוכנה עם infra receiver

Featured Replies

פורסם

// USE TO remote control- WD
#include <IRremote.h>


int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
int a=0; //
int b=0; //
int c=0; //
int d=0; //
int e=0; //


int green=52;
int yellow=51;
int red=50;
int bluergb=53;



void setup()
{
irrecv.enableIRIn();


pinMode(53, OUTPUT);
digitalWrite(53, HIGH);
for(int i=50;i<53;i++)
{
pinMode(i, OUTPUT);
digitalWrite(i, LOW);
}


}


void loop() {
if (irrecv.decode(&results)) {
delay(300);


if (results.value == 0x219EA05F) {a=a+1;} // UP
if (results.value == 0x219E00FF) {b=b+1;} // DOWN
if (results.value == 0x219EE01F) {c=c+1;} // LEFT
if (results.value == 0x219E906F) {d=d+1;} // RIGHT
if (results.value == 0x219E10EF) {e=e+1;} // ENTER






if (a==1){digitalWrite(53, LOW);} else {digitalWrite(53, HIGH); a=0;}
if (b==1){digitalWrite(51, HIGH);} else {digitalWrite(51, LOW); b=0;}
if (c==1){digitalWrite(50, HIGH);} else {digitalWrite(50, LOW); c=0;}
if (d==1){digitalWrite(52, HIGH);} else {digitalWrite(52, LOW); d=0;}




{ //
delay(50);
} //
irrecv.resume(); //


}


}


זהו גרעין הקוד והבעיה היא שאני רוצה לעשות שמשתנה e ידליק הכל אך מבחינת קוד אני לא מצליח לעשות זה מבלי שאז שאר הדברים לא יעבדו כראוי.

אשמח לעזרה בנושא איך לעשות זאת.

נערך על-ידי alex542

ארכיון

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

דיונים חדשים

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.