Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1dbf5c7

Browse filesBrowse files
committed
arrive at 'fakeit::UnexpectedMethodCallException'
1 parent 04eabce commit 1dbf5c7
Copy full SHA for 1dbf5c7

File tree

Expand file treeCollapse file tree

3 files changed

+31
-1
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+31
-1
lines changed

‎.gitignore

Copy file name to clipboard
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
test/build/*
1+
test/build/*
2+
src/build/*

‎src/blink.cpp

Copy file name to clipboard
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Blink
3+
* Turns on an LED on for one second,
4+
* then off for one second, repeatedly.
5+
*/
6+
7+
#ifdef UNIT_TEST
8+
#include "ArduinoFake.h"
9+
#else
10+
#include "Arduino.h"
11+
#endif
12+
13+
void setup()
14+
{
15+
// initialize LED digital pin as an output.
16+
pinMode(LED_BUILTIN, OUTPUT);
17+
}
18+
19+
void loop()
20+
{
21+
// turn the LED on (HIGH is the voltage level)
22+
digitalWrite(LED_BUILTIN, HIGH);
23+
// wait for a second
24+
delay(100);
25+
// turn the LED off by making the voltage LOW
26+
digitalWrite(LED_BUILTIN, LOW);
27+
// wait for a second
28+
delay(100);
29+
}
File renamed without changes.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.