this post was submitted on 08 Apr 2024
12 points (87.5% liked)

Linux

8055 readers
59 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 1 year ago
MODERATORS
 

Messing around with Linux for the first time in a bbb.

I've learned things like ls -1al, those types of basics.

I'm getting the picture that Debian for the bbb is kind of bare bones, no pun intended. Is that right?

I'm interested in some bigger picture basics like that. Any suggestions for resources?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 7 months ago (1 children)

What are you interested in doing with the Beaglebone Black? Without that, not sure how to answer. If you're just looking into learning *nix command line stuff, then there are a lot of tutorials out there.

[–] [email protected] 2 points 7 months ago (1 children)

Trying to get some libraries working, like python pwm.

[–] [email protected] 2 points 7 months ago (1 children)

Hopefully someone will answer with more experience. I was under the understanding that the Beaglebone images had pwm already installed and configured. The python looks pretty straightforward.

[–] [email protected] 2 points 7 months ago* (last edited 7 months ago)

So, turns out, the pins aren't static anymore and are described by their file descriptors.

Instead of something like pwm.start(pin_14, cycle 50%)

It's

f = open("dev/pwm/duty_cycle", "w")
f.write(50)
f.close()

So, file descriptors in Linux are something you need to learn about it you want to code python in a bbb.

Edit: formatting