text: Its been fun having a painting party to make my scooter look pretty.
  I been writing little snippets to see what is important and what is not and Ive found you only really need 5 hexadecimal number to unlock the scooter.
  #include <Arduino.h>
  int powerPin = 5;
  byte messageA[] = {0xA6, 0x12, 0x02, 0x10, 0x14, 0xCF};
  byte messageB[] = {0xA6, 0x12, 0x02, 0x11, 0x14, 0x0B};
  byte messageC[] = {0xA6, 0x12, 0x02, 0x15, 0x14, 0x30};
  void setup() {
  // initialize Serial1:
  Serial.begin(9600);
  pinMode(powerPin, OUTPUT);
  digitalWrite(powerPin, HIGH);
  //Serial.write(messageA, sizeof(messageA));
  //delay(500);
  //Serial.write(messageB, sizeof(messageB));
  }
  void loop() {
  delay(500);
  Serial.write(messageC, sizeof(messageC));
  }
  Discussions
  Become a Hackaday.io Member
  Create an account to leave a comment. Already have an account? Log In.
  It so nice to be noticed. The original code was so painful to look at.
  Are you sure? yes | no
  👍 for using sizeof() in this context as it was intended to be.
  Are you sure? yes | no