Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#include <M5StickC.h> // ספרייה למכשיר M5StickC int ledPin = 10; // הפין שאליו מחובר ה-LED int buttonPin = 0; // הפין שאליו מחובר כפתור void setup() { M5.begin(); // אתחול ה-M5StickC pinMode(ledPin, OUTPUT); // קביעת הפין כיציאה pinMode(buttonPin, INPUT_PULLUP); // קביעת הפין כקלט עם התנגדות פנימית } void loop() { M5.update(); // עדכון מצב הכפתורים if (digitalRead(buttonPin) == LOW) { // אם הכפתור נלחץ digitalWrite(ledPin, HIGH); // הדלק את ה-LED } else { digitalWrite(ledPin, LOW); // כבה את ה-LED } } #62

Open
ariel334375 opened this issue Jan 2, 2025 · 6 comments

Comments

@ariel334375
Copy link

No description provided.

@Tinyu-Zhao
Copy link
Collaborator

??I don’t understand what you are talking about.

@ariel334375
Copy link
Author

ariel334375 commented Jan 3, 2025 via email

@ariel334375
Copy link
Author

ariel334375 commented Jan 3, 2025 via email

@Tinyu-Zhao
Copy link
Collaborator

You can refer to our documentation. Please use English, Thank you. I thought you were sending a bunch of garbled characters at first.

2_05

@ariel334375
Copy link
Author

ariel334375 commented Jan 3, 2025 via email

@ariel334375
Copy link
Author

ariel334375 commented Jan 3, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants