Skip to content

Commit

Permalink
Translated to Swedish
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Nov 23, 2024
1 parent e087a7f commit 8da031e
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions kapitel/LCD3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ Du kan göra många saker med LCD-skärmar. I den här lektionen kommer vi att p
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
byte smiley[8] = {
0b00000,
0b00000,
0b01010,
0b00000,
0b00000,
0b10001,
0b01110,
0b00000
0b00000,
0b00000,
0b01010,
0b00000,
0b00000,
0b10001,
0b01110,
0b00000
};
int kolumn = 0;
int rad = 0;
void setup() {
lcd.begin(16, 2);
lcd.createChar(1, smiley);
lcd.begin(16, 2);
lcd.createChar(1, smiley);
}
void loop() {
lcd.setCursor(rad, kolumn);
lcd.write(1);
fördröjning(1000);
lcd.setCursor(rad, kolumn);
lcd.write(1);
delay(1000);
}
```

Expand Down Expand Up @@ -66,31 +66,31 @@ void loop() {
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
byte smiley[8] = {
0b00000,
0b00000,
0b01010,
0b00000,
0b00000,
0b10001,
0b01110,
0b00000
0b00000,
0b00000,
0b01010,
0b00000,
0b00000,
0b10001,
0b01110,
0b00000
};
int kolumn = 0;
int rad = 0;
void setup() {
lcd.begin(16, 2);
lcd.createChar(1, smiley);
lcd.begin(16, 2);
lcd.createChar(1, smiley);
}
void loop() {
++kolumn;
if (kolumn == 17) kolumn = 0;
lcd.clear();
lcd.setCursor(rad, kolumn);
lcd.write(1);
fördröjning(1000);
++kolumn;
if (kolumn == 17) kolumn = 0;
lcd.clear();
lcd.setCursor(rad, kolumn);
lcd.write(1);
delay(1000);
}
```

Expand Down

0 comments on commit 8da031e

Please sign in to comment.