Searching for paid help on Teensy CDS cell


hello,

i looking paid on following: using teensy board emulate keyboard strokes, once programmed if put teensy in usb port sends automatically numbers 0000 till 9999, working fine. attached lcd displays send @ moment. looking attaching photoresistor cds cell teensy board after sending keystroke  checks if resistance of cell has changed , once it's changed sending of keystrokes has stop , last send number needs displayed in lcd display. attached code using right now, code downloaded internet , copied/pasted here.

i not programmer nor want 1 that's why posting on here.

martin

used code:

#include <usb_keyboard.h>
#include <liquidcrystal.h>
liquidcrystal lcd(23, 22, 16, 15, 14, 13);
 
const int ledpin = 13; // choose pin led
int counter = 0;
int fakecounter = counter;
char pin[] = "xxxx";
 
void setup() {
 
    lcd.begin(16, 2);
    lcd.print("code input");
    pinmode(ledpin, output); // declare led output
    delay(10000);
}
 
void loop() {
    keyboard_modifier_keys = 0;
    if (counter <= 9999) {
        delay(8000);
        digitalwrite(ledpin, low);
        delay(5500);
        digitalwrite(ledpin, high);
        sprintf(pin, "%04d", fakecounter);
        //sending first digit
        keyboard.press(pin[0]);
        delay(450);
        keyboard.release(pin[0]);
        delay(420);
        //sending second digit
        keyboard.press(pin[1]);
        delay(398);
        keyboard.release(pin[1]);
        delay(510);
        //sending third digit
        keyboard.press(pin[2]);
        delay(421);
        keyboard.release(pin[2]);
        delay(423);
        //sending forth digit
        keyboard.press(pin[3]);
        delay(430);
        keyboard.release(pin[3]);
        delay(525);
        //sending enter
        keyboard.press(key_enter);
        delay(305);
        keyboard.release(key_enter);
        lcd.setcursor(0, 1);
        lcd.print(pin[0]);
        lcd.setcursor(1, 1);
        lcd.print(pin[1]);
        lcd.setcursor(2, 1);
        lcd.print(pin[2]);
        lcd.setcursor(3, 1);
        lcd.print(pin[3]);
 
    }
 
    //reached 4 digit pin max value
    if (counter > 9999) {
        (int blinkies = 0; blinkies < 8; blinkies++) {
            digitalwrite(ledpin, high);
            delay(20);
            digitalwrite(ledpin, low);
            delay(200);
        }
        delay(6000);
    }
    ++counter;
    fakecounter = counter;
}

moderator: moved right section


Arduino Forum > Community > Gigs and Collaborations > Searching for paid help on Teensy CDS cell


arduino

Comments