Abhinav SP
Published

Pirates of the Singapore Bay

An artistic badge based on Digispark and design inspirations from Captain Jack Sparrow and Barbossa.

IntermediateFull instructions provided1,173
Pirates of the Singapore Bay

Things used in this project

Hardware components

Custom PCB
Custom PCB
×1
DigiSpark
DigiSpark
×1
Red SMD LEDs 1206 package
×2
Green SMD LEDs 1206 package
×2
Male Header 40 Position 1 Row (0.1")
Male Header 40 Position 1 Row (0.1")
×1
Battery Holder, Lithium CR2032
Battery Holder, Lithium CR2032
×1
Coin Cell Battery CR2032
Coin Cell Battery CR2032
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Keystrokes and Digispark Implementation

Code

Pirates Of The Singapore Bay

Arduino
#include "DigiKeyboard.h"

void setup() {
    pinMode(1, OUTPUT); //onboard LED
}

void loop() {
  
  digitalWrite(1, HIGH); // setting onboard LED On
  
  DigiKeyboard.sendKeyStroke(0);
  
  DigiKeyboard.delay(1000); // 1 second delay for system to process
  
  DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT); // WinKey
  
  DigiKeyboard.delay(500);
  
  DigiKeyboard.print("notepad"); // Starting notepad
  
  DigiKeyboard.delay(500);
    
  DigiKeyboard.sendKeyStroke(KEY_ENTER);

  DigiKeyboard.delay(1000); 
  
  DigiKeyboard.print("                                      Ahoy, Me Hearties!                                            ");
  DigiKeyboard.sendKeyStroke(KEY_ENTER);
  DigiKeyboard.delay(1000);
  
  DigiKeyboard.print("                          Weigh Anchor and Hoist the Mizzen for BSides Singapore.                   ");
  DigiKeyboard.sendKeyStroke(KEY_ENTER);
  DigiKeyboard.delay(1000);
  
  DigiKeyboard.print("                 Go run a rig, Hearties or heave on the Hackerwares");
  DigiKeyboard.sendKeyStroke(KEY_ENTER);
  DigiKeyboard.delay(1000);
  
  DigiKeyboard.print("                       In search of coffer or Pieces of Eight");
  DigiKeyboard.sendKeyStroke(KEY_ENTER);
  DigiKeyboard.delay(1000);
  
  DigiKeyboard.print("                                  In a distant land");
  DigiKeyboard.sendKeyStroke(KEY_ENTER);
  DigiKeyboard.delay(1000);
  
  DigiKeyboard.print("                         You hoist your Jolly Roger high!");
  DigiKeyboard.sendKeyStroke(KEY_ENTER);
  DigiKeyboard.delay(1000);
  
  DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT); //WinKey
  
  DigiKeyboard.delay(1000);
  
  DigiKeyboard.print("cmd"); //Opening CMD
  
  DigiKeyboard.sendKeyStroke(KEY_ENTER);

  DigiKeyboard.delay(1000);

  DigiKeyboard.print("msg %username% Eject the badge"); //Windows Alert box
  
  DigiKeyboard.delay(10000); //Longer time delay

}

Credits

Abhinav SP

Abhinav SP

29 projects • 22 followers
Artist, Hacker, & Entrepreneur. Making hardware learning creative and fun with innovative badges. Founder, Hackerware.io

Comments