Giter Club home page Giter Club logo

dialteil's Introduction

DialTeil

Hardware:

Wiring

Digispark Rotary Encoder
P0 CLK OR DT
P1 SW
P2 DT OR CLK

My rotary encoder has an active low switch which is pulled up by an 10k ohm resistor. Together with the build in led (connected also to pin 1) the Digispark detect always a low, doesn't matter the switch is pressed or not.

Here are two solutions:

  • Replace the 10k ohm pull up switch resistor with a 1.5k ohm resistor on rotary encoder
  • Desolder build in led on the digispark

Recommended Software

  • VS-Code + Platformio Extension

Flashing Preparation

Clone this project

git clone https://github.com/fixItFab/KeyBoardLight.git

Download TrinketHidCombo

TrinketHidCombo is not available on the platformio libraries. So we have to download the TrinketHidCombo library manually.

TLDR:

curl -s -L -o trinket-usb.zip https://github.com/adafruit/Adafruit-Trinket-USB/archive/master.zip && unzip trinket-usb.zip && cp -R ./Adafruit-Trinket-USB-master/TrinketHidCombo ./lib/ && rm -rf ./trinket-usb.zip ./Adafruit-Trinket-USB-master ./lib/TrinketHidCombo/usbdrv/usbdrvasm.asm
  1. Download TrinketHidCombo Library from Github
  2. Unzip it
  3. Copy only the TrinketHidCombo folder to your lib folder
  4. The file TrinketHidCombo/TrinketHidCombousbdrv/usbdrvasm.asm maybe make trouble processing compiling & flashing. In short, delete the file, we don't need it! :)
  5. clean up downloaded & unziped files

Flashing & Testing

Now, you can start flashing.

First start the flash process and when the console print Uploading .pio/build/digispark-tiny/firmware.hex, plug the Digispark into the USB port

After flashing, the Digisparks reboot and after a few seconds, the DialTail is ready to use.

dialteil's People

Contributors

fixitfab avatar

Watchers

Tobias Janssen avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.