Skip to content

Commit

Permalink
fix import in readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Feb 26, 2024
1 parent 72e06ab commit 5ce3a4c
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 5ce3a4c

Please sign in to comment.