Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ble_hid.md - Fixed Bad Instruction #519

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

baconspoon85
Copy link

  1. Corrected and clarified bad instruction. This document tells you to place the "adafruit_ble" library at the device root. It should be placed in the "lib" directory.
  2. Provided a more direct link to get the Adafruit CircuitPython Bundle. New link provides better detail from Adafruit for how and what to download.
  3. Corrected the link to instructions for renaming the CIRCUITPY drive.

1. Corrected and clarified bad instruction. This document tells you to place the "adafruit_ble" library at the device root. It should be placed in the "lib" directory. 
2. Provided a more direct link to get the Adafruit CircuitPython Bundle. New link provides better detail from Adafruit for how and what to download.
3. Corrected the link to instructions for renaming the CIRCUITPY drive.
Copy link
Collaborator

@xs5871 xs5871 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of minor things

docs/ble_hid.md Outdated Show resolved Hide resolved
docs/ble_hid.md Show resolved Hide resolved
Simply put this in the "root" of your CircuitPython device. If unsure, it's the folder with main.py in it, and should be the first folder you see when you open the device.
If not running KMKPython, this does require the [adafruit_ble library from Adafruit](https://github.com/adafruit/Adafruit_CircuitPython_BLE/tree/master/adafruit_ble).
It's part of the Adafruit CircuitPython Bundle, which can be downloaded [here](https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/tag/20220715).
Get the bundle version that corresponds to the CircuitPython version installed on your device. Unzip the bundle and open the "lib" folder to locate the "adafruit_ble" library. Selectively copy that library (the entire "adafruit_ble" folder) and place it into the "lib" folder located at the root of your CIRCUITPY device. If unsure, the root is the main device storage folder where your main.py (or code.py) file is located. The "lib" folder should have been created when you installed CircuitPython. If not, just create one to place the ble library.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why doesn't the device root work? Is there some specific code somewhere that explicitly sources from lib?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our standard convention seems to be on the root of the drive. If that library somehow only magically works only under /lib then an exception can be made, however that shouldn't be the case last I worked on BLE

Removed reference to KMKPython

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
Simply put this in the "root" of your CircuitPython device. If unsure, it's the folder with main.py in it, and should be the first folder you see when you open the device.
If not running KMKPython, this does require the [adafruit_ble library from Adafruit](https://github.com/adafruit/Adafruit_CircuitPython_BLE/tree/master/adafruit_ble).
It's part of the Adafruit CircuitPython Bundle, which can be downloaded [here](https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/tag/20220715).
Get the bundle version that corresponds to the CircuitPython version installed on your device. Unzip the bundle and open the "lib" folder to locate the "adafruit_ble" library. Selectively copy that library (the entire "adafruit_ble" folder) and place it into the "lib" folder located at the root of your CIRCUITPY device. If unsure, the root is the main device storage folder where your main.py (or code.py) file is located. The "lib" folder should have been created when you installed CircuitPython. If not, just create one to place the ble library.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our standard convention seems to be on the root of the drive. If that library somehow only magically works only under /lib then an exception can be made, however that shouldn't be the case last I worked on BLE

@kdb424
Copy link
Contributor

kdb424 commented Aug 10, 2022

@baconspoon85 Just wondering if you plan on coming to make more changes? Otherwise, we'll adopt this and get it patched up and merged. These fixes should be put in place in the docs.

@baconspoon85
Copy link
Author

baconspoon85 commented Aug 10, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants