Skip to content

Commit 6ed1b6a

Browse files
committed
corrected spelling for define LED_BUILTIN (from LED_BUILDIN)
1 parent 18dc8de commit 6ed1b6a

9 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ First, let's make an LED blink using the Blink example from Arduino:
6565
// Pin 13 has an LED connected on most Arduino boards.
6666
// Pin 3 for the STM8S103 break out board
6767
// give it a name:
68-
int led = LED_BUILDIN;
68+
int led = LED_BUILTIN;
6969

7070
// the setup routine runs once when you press reset:
7171
void setup() {

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Let's blink an LED using the Blink example from Arduino:
3838
// Pin 13 has an LED connected on most Arduino boards.
3939
// Pin 3 for the STM8S103 break out board
4040
// give it a name:
41-
int led = LED_BUILDIN;
41+
int led = LED_BUILTIN;
4242

4343
// the setup routine runs once when you press reset:
4444
void setup() {

sduino/examples/01.Basics/Blink/Blink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// Pin 13 has an LED connected on most Arduino boards.
1111
// Pin 3 for the STM8S103 break out board
1212
// give it a name:
13-
int led = LED_BUILDIN;
13+
int led = LED_BUILTIN;
1414

1515
// the setup routine runs once when you press reset:
1616
void setup() {

sduino/examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// These constants won't change. They're used to give names
2727
// to the pins used:
2828
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to
29-
const int analogOutPin = LED_BUILDIN; // Analog output pin that the LED is attached to
29+
const int analogOutPin = LED_BUILTIN; // Analog output pin that the LED is attached to
3030

3131
int sensorValue = 0; // value read from the pot
3232
int outputValue = 0; // value output to the PWM (analog out)

sduino/examples/03.Analog/AnalogInput/AnalogInput.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <Arduino.h>
3131

3232
int sensorPin = A0; // select the input pin for the potentiometer
33-
int ledPin = LED_BUILDIN; // select the pin for the LED
33+
int ledPin = LED_BUILTIN; // select the pin for the LED
3434
int sensorValue = 0; // variable to store the value coming from the sensor
3535

3636
void setup() {

sduino/examples/03.Analog/Fading/Fading.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include <Arduino.h>
2424

25-
int ledPin = LED_BUILDIN; // define the LED pin
25+
int ledPin = LED_BUILTIN; // define the LED pin
2626

2727
void setup() {
2828
// nothing happens in setup

sduino/examples/04.Communication/Dimmer/Dimmer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include <Arduino.h>
2727

28-
const int ledPin = LED_BUILDIN; // the pin that the LED is attached to
28+
const int ledPin = LED_BUILTIN; // the pin that the LED is attached to
2929

3030
void setup() {
3131
// initialize the serial communication:

sduino/hardware/sduino/stm8/variants/standard/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ static const uint8_t SCL = PIN_WIRE_SCL;
115115
#define SDA PIN_WIRE_SDA
116116
#define SCL PIN_WIRE_SCL
117117

118-
#define PIN_LED_BUILDIN (PB5) // sduino: pin for the buildin LED, pin 3
118+
#define PIN_LED_BUILTIN (PB5) // sduino: pin for the buildin LED, pin 3
119119
#define PIN_TX (PD5) // sduino: pin for TX line
120120
#define PIN_RX (PD6) // sduino: pin for RX line
121121

122-
#define LED_BUILDIN (PB5) // pin for the buildin LED, pin 3
122+
#define LED_BUILTIN (PB5) // pin for the buildin LED, pin 3
123123

124124
#define PIN_A0 (PC4) // 6, Ain2
125125
#define PIN_A1 (PD2) // 11, Ain3

sduino/hardware/sduino/stm8/variants/stm8sdisco/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ static const uint8_t SCL = PIN_WIRE_SCL;
127127
#define SDA PIN_WIRE_SDA
128128
#define SCL PIN_WIRE_SCL
129129

130-
#define PIN_LED_BUILDIN (PD0) // sduino: pin for the buildin LED, pin 13
130+
#define PIN_LED_BUILTIN (PD0) // sduino: pin for the buildin LED, pin 13
131131
#define PIN_TX (PD5) // sduino: pin for TX line, pin 8
132132
#define PIN_RX (PD6) // sduino: pin for RX line, pin 7
133133

134-
#define LED_BUILDIN (PD0) // pin for the buildin LED, pin 13
134+
#define LED_BUILTIN (PD0) // pin for the buildin LED, pin 13
135135

136136
#define PIN_A0 (PE6) // 28, Ain9
137137
#define PIN_A1 (PE7) // 29, Ain8

0 commit comments

Comments
 (0)