Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found programmer: Id = "HL2.0.5"; type = S (everytime I tried to upload a program, This message come out and never get any use of the board after using your bootloader #85

Open
mymafm0405 opened this issue Mar 6, 2021 · 2 comments

Comments

@mymafm0405
Copy link

Found programmer: Id = "HL2.0.5"; type = S (everytime I tried to upload a program, This message come out and never get any use of the board after using your bootloader

@sw08
Copy link

sw08 commented Mar 7, 2021

Me too

I saw a post about this(Hoodloader2), and tried this.
But I think I coded right, but that message was printed every time, then my code doesn't work.

Here's the code.

#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);


void setup() {
    lcd.init();
    lcd.backlight();
    pinMode(A0, INPUT);
    pinMode(A1, INPUT);
    lcd.clear();
    lcd.print("TwoHandle Mode");
    lcd.setCursor(0,1);
    lcd.print("Set Handles Left");
    lcd.setCursor(0,0);
    delay(5000);
    while (analogRead(A0) < 900 || analogRead(A1) < 900) {
        lcd.noBacklight();
        delay(500);
        lcd.backlight();
        delay(500);
    }
    lcd.clear();
    lcd.print("Start after 15 seconds.");
    delay(5000);
    lcd.clear();
    lcd.print("Start after 10 seconds.");
    delay(5000);
    lcd.clear();
    lcd.print("Start after 05 seconds.");
    delay(1000);
    lcd.clear();
    lcd.print("Start after 04 seconds.");
    delay(1000);
    lcd.clear();
    lcd.print("Start after 03 seconds.");
    delay(1000);
    lcd.clear();
    lcd.print("Start after 02 seconds.");
    delay(1000);
    lcd.clear();
    lcd.print("Start after 01 seconds.");
    delay(1000);
    lcd.clear();
    lcd.print("Start!");
    delay(1000);
    Serial.begin(115200);
}

void loop() {
    int Accel = 0;
    int Break = 0;
    lcd.clear();
    Accel = analogRead(A0);
    Break = analogRead(A1);
    Accel = round(4 - Accel / 205);
    Break = round(8 - Break / 114);
    String data = String(Accel) + "|" + String(Break) + ',';
    char Packet[data.length()];
    data.toCharArray(Packet, data.length());
    Serial.write(Packet);
    lcd.print("Accel: " + String(Accel));    
    lcd.setCursor(0, 1);
    if (Break != 8) {
        lcd.print("Break: " + String(Break));
        lcd.setCursor(0, 0);
    } else {
        lcd.print("Break: Emergency");
        lcd.setCursor(0, 0);
    }
    delay(100);
}``` - on 328P MCU
  
```arduino
#include <Keyboard.h>

int Break = 0;
int Accel = 0;

void setup() {
    Serial.begin(115200);
    Keyboard.begin();
}

void loop() {
    if (Serial.available()) {
        String data = Serial.readStringUntil(',');
        int sub = data.indexOf("|");
        int SerialBreak = data.substring(sub+1).toInt();
        data.remove(sub);
        int SerialAccel = data.toInt();
        if (true) {
            Break = 9;
            Keyboard.press('/');
            Keyboard.release('/');
        } else if (SerialBreak != Break) {
            if (SerialBreak < Break) {
                while (SerialBreak != Break) {
                    Keyboard.press(',');
                    Keyboard.release(',');
                }
            } else {
                while (SerialBreak != Break) {
                    Keyboard.press('.');
                    Keyboard.release('.');
                }
            }
        }
        if (SerialAccel != Accel) {
            if (SerialAccel < Accel) {
                while (SerialAccel != Accel) {
                    Keyboard.press('z');
                    Keyboard.release('z');
                }
            } else {
                while (SerialAccel != Accel) {
                    Keyboard.press('a');
                    Keyboard.release('a');
                }
            }
        }
    }
}``` - on 16u2 MCU

@NicoHood
Copy link
Owner

NicoHood commented Mar 7, 2021

I dont understand what your problem is. I suggest reading the wiki carefully, as most people dont understand, that they deal with 2 different MCUs now, and therefor need to use different pin and board options in the ide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants