Giter Club home page Giter Club logo

Comments (12)

dbisu avatar dbisu commented on September 3, 2024

Potentially a call to storage.disable_usb_drive() could be added to boot.py. I might make that a second switch, in case someone wants to use the storage during a script for payload distribution or data dumping.

from pico-ducky.

dbisu avatar dbisu commented on September 3, 2024

Just realized that call is only available in the latest CircuitPython, not CircuitPython 6.3. I would need to test this project against CircuitPython 7.x before being able to turn off the host PC storage.

from pico-ducky.

GamehunterKaan avatar GamehunterKaan commented on September 3, 2024

I tried running the code with CircuitPython 7.x but for some reason it goes into read only mode and doesn't work.

from pico-ducky.

GamehunterKaan avatar GamehunterKaan commented on September 3, 2024

Ok I Nuked It And Installed Hid Libraries For CircuitPython 7.x.Seems To Be Working Fine For Now.

from pico-ducky.

dbisu avatar dbisu commented on September 3, 2024

OK. I'll look at updating the project once 7.x is officially released. In the meantime, if you want to try with a switch, you can create a boot.py like this.

from board import *
import digitalio
import storage

noStorageStatus = False
noStoragePin = digitalio.DigitalInOut(GP15)
noStoragePin.switch_to_input(pull=digitalio.Pull.UP)
noStorageStatus = not noStoragePin.value

if(noStorageStatus == True):
    # don't show USB drive to host PC
    storage.disable_usb_drive()
    print("Disabling USB drive")
else:
    # normal boot
    print("USB drive enabled")
```

from pico-ducky.

GamehunterKaan avatar GamehunterKaan commented on September 3, 2024

I Dont Have Any Jumper Wires Right Now.I Will Give Feedback When They Arrive.(In 2-3 Days Hopefully)

from pico-ducky.

prajwal-bm avatar prajwal-bm commented on September 3, 2024

this is not working for me can any one help, i fallowed all the steps but it is not working

from pico-ducky.

GamehunterKaan avatar GamehunterKaan commented on September 3, 2024

It Just Tested It Works Perfectly Fine For Me.Nuke Your Pico First To Reset It,Download CircuitPhyton 7.x,Download Adafruit HID Libraries For 7.x And Then Make Sure You Connect The Correct Pins. https://i.imgur.com/f28d2u4.jpg

from pico-ducky.

GamehunterKaan avatar GamehunterKaan commented on September 3, 2024

@dbisu CircuitPython 7.0.0 Is Officially Released.

from pico-ducky.

dbisu avatar dbisu commented on September 3, 2024

I'll get a card added to update the project to version to 7.0.0. Sounds like it will be mostly validation testing.

from pico-ducky.

Decapitater avatar Decapitater commented on September 3, 2024

Any updates gentelmen ? The project seems to be updated

from pico-ducky.

dbisu avatar dbisu commented on September 3, 2024

I might have some time this weekend to look at this again.

from pico-ducky.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.