Updated 28/07-2020
Here is some info about LilyGo BadUSB and you are welcome to add more info about the subject.
After I bought some pieces of LilyGo BadUSB, my first thought was that the board should also be used for anything other than keyboard emulation and evil things.
But first, just a little info about keyboard emulation for non-US:
Finding a library for the Arduino IDE for my Keyboard Layout was a bit difficult, but found "Keyboard_DE" and it works: GitHub - BesoBerlin/Arduino-German-Keyboard: Workaround to use Arduino Leonardo/Micro with german keyboard layout
I've tried searching the web for pinouts, schematic and similar.
But ended up separating one of my own LilyGo BadUSB board, and here are some pictures.
I have put on a label with pinouts, because I always forget which pins are which.
(So many pins )
Found out that it is an ISP connector that is inside and a red LED.
And here are the pinouts:
+5v GND RST SCK MOSI MISO
Pins in Arduino IDE (board is Leonardo):
SCK = 15
MOSI = 16
MISO = 14
LED = 13
Here near the screwdriver we have an LED.
Another picture of PCB
Pinouts https://i.ibb.co/9GdT2JH/Lily-Go-BADUSB-Pinout.jpg
I have also tried playing a bit with SoftwareSerial and works fine with pins 14, 15, 16 (MISO, SCK, MOSI)
Board Specs:
Microcontroller: ATmega32u4
Clock Speed: 16 MHz
Operating Voltage: 5V DC
Digital I / O Pins: 4 (Onboard LED = 13, MISO = 14, SCK = 15, MOSI = 16)
USB: 1
Flash Memory: 32KB, but 4KB used by bootloader (Caterina-Leonardo / Arduino Leonardo Bootloader)
SRAM: 2.5 KB
EEPROM: 1 KB
It is also possible to remove LED & resistor.
The resistor near the LED on my device are marked "331" (330 Ω)
After removing the resistor, I drilled a hole with a 0.8 mm drill bit between the 2 pads where the resistor was soldered.
With Pin 13 free, it is possible to have SPI interface with e.g. SD card etc.
SD / µSD card tested & works fine with LilyGo BadUSB board.
(CS / Chip Select Pin = Pin 13)
Link for pictures in high resolution & Original Arduino Leonardo Bootloader HEX:
https://drive.google.com/drive/folders/1NFCk_8VjjQSnWvtUBjm2BaI0zoQtvpTG
Feel free to drop a post/reply about what cool projects you have gotten out of this little board.
Like "BionicRiddle" did.
(Description, Pictures & Code)
Stay safe and stay legal guys/girls!!
Arduino Leonardo Bootloader.zip (34.8 KB)