Skip to content

Commit

Permalink
Merge pull request #18 from FoamyGuy/fix_readme
Browse files Browse the repository at this point in the history
fix import in readme example
  • Loading branch information
tannewt authored Feb 26, 2024
2 parents 72e06ab + 5ce3a4c commit b9dc80b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ First you will need to import the libraries
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
import ducky
import adafruit_ducky
Once this is done, define the keyboard layout and initialize the `Ducky` object.

Expand All @@ -114,7 +114,7 @@ Once this is done, define the keyboard layout and initialize the `Ducky` object.
keyboard = Keyboard(usb_hid.devices)
keyboard_layout = KeyboardLayoutUS(keyboard) # We're in the US :)
duck = ducky.Ducky('duckyscript.txt', keyboard, keyboard_layout)
duck = adafruit_ducky.Ducky('duckyscript.txt', keyboard, keyboard_layout)
Now, set up a loop which will run a line of the script every time `loop` is called.

Expand Down

0 comments on commit b9dc80b

Please sign in to comment.