diff --git a/examples/simple-pwm-led/README b/examples/simple-pwm-led/README deleted file mode 100644 index 3ff862e..0000000 --- a/examples/simple-pwm-led/README +++ /dev/null @@ -1,14 +0,0 @@ -This is a bare Makefile project sample to work with ino files, and makes use -of the arduino-make/arduino-mk Makefile framework that aims to provide all of -the IDE functionalities but via a Makefile. - -See https://github.com/sudar/Arduino-Makefile - -Once installed you need to set at least these two env variables to be able to -use the Makefile: - - export ARDUINO_DIR=/usr/share/arduino - export ARDMK_DIR=/usr/share/arduino - -Adjust to reflect your own paths! Put that in your shell rc! - diff --git a/examples/simple-pwm-led/pwm-led.ino b/examples/simple-pwm-led/pwm-led.ino index 2ff0ab0..5b01adf 100644 --- a/examples/simple-pwm-led/pwm-led.ino +++ b/examples/simple-pwm-led/pwm-led.ino @@ -34,8 +34,8 @@ void loop() { delay_off = 1023 - analogRead(POT_2); // Parameters for the PWM - digitalWrite(LED, HIGH); // turn the LED on - delay(delay_on); // wait for delay_on ms - digitalWrite(LED, LOW); // turn the LED off - delay(delay_off); // wait for delay_off ms + digitalWrite(LED, HIGH); // turn the LED on + delay(delay_on); // wait for delay_on ms + digitalWrite(LED, LOW); // turn the LED off + delay(delay_off); // wait for delay_off ms }