How to compile this arduino code in replit

**Question:**how to compile this arduino code in replit


Repl link:

#include <Keyboard.h>

void setup() {
  // put your setup code here, to run once:
  Keyboard.begin();
}

void loop() {
  for (int i=0; i<26; i++) {
    Keyboard.write(i+65); //A-Z
    Keyboard.write(i+97); //a-z
    Keyboard.write(i+48); //0-9
    delay(100);
  }
  Keyboard.releaseAll();
  delay(1000);
}

Are you using the c/c++ template?

I don’t believe this is possible using Replit. You will most likely need to use Arduino IDE, which can be used to forward all of the code when your Arduino is plugged in and selected.

You could either download it, or I believe you can use it online if you have an account.

If I am not wrong, Arduino runs on C#

1 Like

Actually, Arduino programming itself is a variation of C++ without classes and some other built-in functions. I’m not sure what Arduino itself was written in though.

1 Like