CelvinBraun / Digispark-ATTiny85

My repo to the Digispark Board. Here I keep a short instructions and all necessary files to get started.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Digispark-ATTiny85


This is my repo for projects regarding the Digispark (ATTiny85). The instruction isn´t meant to be a perfect one. It should just help me to get back on track, when I forget something. :)


Short instructions (for Windows):

  1. Arduino IDE needed: Download
  2. Install Digistump driver (DPinst.exe=32bit|DPinst64.exe=64bit): Download | Repo
  3. Add "http://digistump.com/package_digistump_index.json" to "Additional Boards Manager URL"

Keyboard Layouts

-> German: DigiKeyboardDe.h | Repo

To add a keyboard layout, you need to import it in your code: #include "DigiKeyboardDe.h". Needs to be in the same path as the ".ino" files. An example is in the folder "hello_world.ino". Here you can see the exact structure, to be able to upload your code on your Digispark.


Code Example:

#include "DigiKeyboardDe.h"  
void setup() {  
  DigiKeyboardDe.sendKeyStroke(0);  
  DigiKeyboardDe.sendKeyStroke(KEY_R, MOD_GUI_LEFT);   
  DigiKeyboardDe.println("cmd");
  DigiKeyboard.delay(500); 
  DigiKeyboardDe.println("echo Hello World!");
}  
void loop() {  
} 

How to upload:

  1. Open Arduino IDE and create your project.
  2. Be sure you selected the right board. (Tools -> Board -> "Digispark (Default - 16mhz)"
  3. To upload: Click the Upload Button in the Arduino IDE.
  4. Wait! Arduino will now compile your code.
  5. When the message: "Running Digispark Uploader... Plug in device now... (will timeout in 60 seconds)" appears, plug-in your Digispark!
  6. When the upload was succesfull, the message: ">> Micronucleus done. Thank you!" will appear!

Errors I experienced:

Digispark doesn´t get recognized by your OS (this happend to a few clones from a different drop):
A: I was able to fix this issue, when I used a USB-Hub. When you use a Digispark, with cable, try a different cable.


About

My repo to the Digispark Board. Here I keep a short instructions and all necessary files to get started.


Languages

Language:C 82.9%Language:C++ 10.0%Language:Assembly 4.3%Language:Processing 1.4%Language:PHP 0.7%Language:Makefile 0.3%Language:CSS 0.1%Language:GDB 0.1%Language:Python 0.0%Language:HTML 0.0%Language:XSLT 0.0%Language:Batchfile 0.0%Language:POV-Ray SDL 0.0%Language:Shell 0.0%Language:Elixir 0.0%Language:VBScript 0.0%