Added multiple main*.cpp files
parent
4742d22359
commit
32c620aec6
@ -0,0 +1,24 @@
|
|||||||
|
#include <Arduino.h>
|
||||||
|
#include <foo.h>
|
||||||
|
|
||||||
|
#define LED_BUILTIN 2
|
||||||
|
int delayTime = 100;
|
||||||
|
|
||||||
|
void setup()
|
||||||
|
{
|
||||||
|
// put your setup code here, to run once:
|
||||||
|
pinMode(LED_BUILTIN, OUTPUT);
|
||||||
|
Serial.begin(115200);
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop()
|
||||||
|
{
|
||||||
|
// put your main code here, to run repeatedly:
|
||||||
|
Serial.println("Starting loop");
|
||||||
|
digitalWrite(LED_BUILTIN, HIGH);
|
||||||
|
delay(delayTime);
|
||||||
|
digitalWrite(LED_BUILTIN, LOW);
|
||||||
|
Serial.println("Turning off LED");
|
||||||
|
printf("This is main2.cpp!\n");
|
||||||
|
delay(delayTime);
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
#include <Arduino.h>
|
||||||
|
#include <foo.h>
|
||||||
|
|
||||||
|
#define LED_BUILTIN 2
|
||||||
|
int delayTime = 1000;
|
||||||
|
|
||||||
|
void setup()
|
||||||
|
{
|
||||||
|
// put your setup code here, to run once:
|
||||||
|
pinMode(LED_BUILTIN, OUTPUT);
|
||||||
|
Serial.begin(115200);
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop()
|
||||||
|
{
|
||||||
|
// put your main code here, to run repeatedly:
|
||||||
|
Serial.println("Starting loop");
|
||||||
|
digitalWrite(LED_BUILTIN, HIGH);
|
||||||
|
delay(delayTime);
|
||||||
|
digitalWrite(LED_BUILTIN, LOW);
|
||||||
|
Serial.println("Turning off LED");
|
||||||
|
printf("This is main3.cpp!\n");
|
||||||
|
delay(delayTime);
|
||||||
|
}
|
Loading…
Reference in New Issue