Skip to content

Commit c607353

Browse files
authored
Update cheat-sheet.md
1. pinMode Rx and Tx LED names corrected. 2. Reversed Rx and Tx "high" and "low" states to match turning off and on LED state (refer to schematic).
1 parent 1f48113 commit c607353

File tree

1 file changed

+6
-6
lines changed
  • content/hardware/02.hero/boards/uno-r4-minima/tutorials/cheat-sheet

1 file changed

+6
-6
lines changed

content/hardware/02.hero/boards/uno-r4-minima/tutorials/cheat-sheet/cheat-sheet.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,21 +218,21 @@ To control these, define them as outputs and write desired state. The below exam
218218
void setup(){
219219
//define pins as output
220220
pinMode(LED_BUILTIN, OUTPUT);
221-
pinMode(RX_LED, OUTPUT);
222-
pinMode(TX_LED, OUTPUT);
221+
pinMode(LED_RX, OUTPUT);
222+
pinMode(LED_TX, OUTPUT);
223223
}
224224
225225
void loop(){
226226
//turn on all LEDs
227227
digitalWrite(LED_BUILTIN, HIGH);
228-
digitalWrite(LED_RX, HIGH);
229-
digitalWrite(LED_TX, HIGH);
228+
digitalWrite(LED_RX, LOW);
229+
digitalWrite(LED_TX, LOW);
230230
delay(1000);
231231
232232
//turn off all LEDs
233233
digitalWrite(LED_BUILTIN, LOW);
234-
digitalWrite(LED_RX, LOW);
235-
digitalWrite(LED_TX, LOW);
234+
digitalWrite(LED_RX, HIGH);
235+
digitalWrite(LED_TX, HIGH);
236236
delay(1000);
237237
}
238238
```

0 commit comments

Comments
 (0)