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

grid-st #1358

Merged
merged 3 commits into from
Jun 1, 2021
Merged

grid-st #1358

merged 3 commits into from
Jun 1, 2021

Conversation

catfact
Copy link
Collaborator

@catfact catfact commented May 2, 2021

support for new grids based on stm32.


this requires that matron be linked against libmonome built from the grid-st branch.

steps i had to take:

  • clone libmonome and build the testing branch
git clone https://github.com/monome/libmonome
cd libmonome
git checkout grid-st
./waf configure && ./waf && sudo ./waf install

this will result in libmonome being installed at usr/local/include, /usr/local/lib.

however the norns image also has libmonome installed directly under /usr. (i'm not sure how.)

  • so i had to change the runtime link behavior:
echo '/usr/local/lib' | sudo tee /etc/ld.so.conf.d/libmonome.conf
sudo ldconfig

(i also nuked the installation under /usr but probably not necessary.)

@catfact
Copy link
Collaborator Author

catfact commented May 3, 2021

as of hash ff77fdb8af4eb7ff5f92f91cf197abf146adb1ec, seems to be working.
(was having PEBCAK trouble due to once again forgetting how vports work.)

@catfact catfact marked this pull request as ready for review May 3, 2021 12:08
@catfact catfact changed the base branch from main to dev May 3, 2021 12:09
@catfact catfact changed the base branch from dev to main May 3, 2021 12:09
@tehn
Copy link
Member

tehn commented May 3, 2021

code looks great. will test on hardware when i return!

@ngwese
Copy link
Member

ngwese commented May 21, 2021

will give this a test tonight

@ngwese
Copy link
Member

ngwese commented May 22, 2021

confirmed working on norns, multiple generations of grids, switching back and forth, hot plug.

dmesg output (for what it is worth):

[ 4402.772327] usb 1-1.4: new full-speed USB device number 18 using dwc_otg
[ 4402.918500] usb 1-1.4: New USB device found, idVendor=0483, idProduct=5740, bcdDevice= 2.00
[ 4402.918509] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4402.918513] usb 1-1.4: Product: grid
[ 4402.918517] usb 1-1.4: Manufacturer: monome
[ 4402.918522] usb 1-1.4: SerialNumber: m05A395E4638
[ 4402.920668] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device

UPDATE: also confirm st-grid along side crow (basic smoke test) working.

Copy link
Member

@ngwese ngwese left a comment

Choose a reason for hiding this comment

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

fwiw i couldn't find a grid-st branch in monome/libmonome or a related pull request so i built grid-st from catfact/libmonome.

otherwise lgtm.

@tehn
Copy link
Member

tehn commented Jun 1, 2021

merging this. works without updating libmonome.

@tehn tehn merged commit 65ae78e into main Jun 1, 2021
@tehn tehn deleted the grid-st branch June 1, 2021 14:20
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