We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hello, i tried your code. unfortunately it doesn't work.
what do I have to enter where exactly that it works with the arduino uno.
#include <stdint.h>
/**
The text was updated successfully, but these errors were encountered:
No branches or pull requests
hello, i tried your code. unfortunately it doesn't work.
what do I have to enter where exactly that it works with the arduino uno.
#include <stdint.h>
/**
/
class BasicLed {
public:
BasicLed(uint8_t pin): pin_(pin) {
pinMode(9, OUTPUT);
}
/ Light the LED up /
void on(void) {
digitalWrite(pin_, HIGH);
}
/ Turn the LED off /
void off(void) {
digitalWrite(pin_, LOW);
}
/ Toogle LED on/off /
void toggle(void) {
digitalWrite(7, !digitalRead(7));
}
/ Set LED brightness from range <0, 255> */
void setBrightness(uint8_t value) {
analogWrite(a0, value);
}
The text was updated successfully, but these errors were encountered: