master
ugrnm 5 years ago
parent c47648ad4d
commit 9e982b41cf

@ -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!

@ -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
}

Loading…
Cancel
Save