Author Topic: DigisparkKeyboard works with Mac and Raspberry Pi, not with Linux laptop.  (Read 2175 times)


  • Newbie
  • *
  • Posts: 1
The following trivial program uses DigiKeyboard to send the string "echo Hello World" once per second forever.

Code: [Select]
#include "DigiKeyboard.h"

void setup() {
  // don't need to set anything up to use DigiKeyboard
  pinMode(1, OUTPUT);
  digitalWrite(1, HIGH);   // turn the LED on
void loop() {
  DigiKeyboard.println("echo Hello World.");

Works fine on a Mac or a Raspberry Pi. Doesn't work well on my linux laptop. Instead of getting complete lines of  "echo Hello World." at best I get a few fragments like "cho", "ll", "He", etc... (all run together without the quotes.) Eventually it locks up.

USB programming does work from the same laptop. This makes me suspect that the VUSB version 2.01 used in the bootloader is more tolerant of some timing issue, or packet type, or something else than the older VUSB library used with DigiKeyboard library.

I program the Digispark Pro (Kickstarter Edition) once and try it on each computer.  So it is the same program, same Pro, just different computers.