Summary
I want to remember all my passwords for different sites, but it doesn't always work out. Recently I thought about the idea of a flash drive with passwords - conceived - done. The "flash drive" consists of 2 parts for cool geeks, and 3 for ordinary people who have a 3D printer, or they can print the 3rd part (case)
Digispark attiny85 key
TACT clock button 12x12-7.0
The case it is
///Code for arduino
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
//////////////////// Сюда вводим количество сайтов
char* sites[] = {
"Pc Andmin", // My PC Admin
"Chrome", // Google Chrome
"Google", // Google
"Facebook",// Facebook
"Instagram",// Instagram
"Twitter",// Twitter
"Pinterest",// Pinterest
"Autodesk",// Autodesk
"Github",// Github
"End",// End Stroke
"->"};// Start
/////////////////// Сюда вводим пароли
char* paswords[] = {
"PAsswordForMyPCAdmin", // My PC Admin
"PAsswordFor", // Google Chrome
"PAsswordForGoogle", // Google
"PAsswordForFacebook",// Facebook
"PAsswordForInstagram",// Instagram
"PAsswordForTwitter",// Twitter
"PAsswordForPinterest",// Pinterest
"PAsswordForAutodesk",// Autodesk
"PAsswordForGitHub"};// GitHub
//////////////////Программа
/////////////// add # before include
include "DigiKeyboard.h"
const int buttonPin = 1; // переменная для кнопки, назначаем ее на контакт 1
int reading = 0; // переменная в которой хранится состояние кнопки, 0 (выключено)
////////////////////
const int button = 3;
const int led = 13;
int bounceTime = 50;
int holdTime = 250;
int doubleTime = 500;
int lastReading = LOW;
int hold = 0;
int single = 0;
int LEDstate = 0;
long onTime = 0;
long lastSwitchTime = 0;
int siteCounter = 0;
int firstEnter = 0;
void setup() {
pinMode(buttonPin, INPUT);
}
void loop() {
DigiKeyboard.sendKeyStroke(0);
int SiteSizes = sizeof(sites) / sizeof(sites[0]);
int reading = digitalRead(buttonPin); //
//first pressed
if (reading == HIGH && lastReading == LOW) {
onTime = millis();
}
//held
if (reading == HIGH && lastReading == HIGH && hold == 0) {
if ((millis() - onTime) > holdTime) {
for (int i=0; i <= strlen(sites[siteCounter -1]); i++){
DigiKeyboard.sendKeyStroke(0x2A);
}
}
lastReading = reading;
}
///////////////////////////code end
Print Settings
Rafts:
No
Supports:
No
Resolution:
200
Infill:
20
Etiketler
Model Kaynağı
