What are the polarity values in Ubuntu 16.04

66 views
Skip to first unread message

Gijs Sijpesteijn

unread,
Jun 18, 2016, 4:30:21 PM6/18/16
to BeagleBoard
I don't know if I'm on the right track, but this is what I've done:

I've used the this script https://github.com/RobertCNelson/boot-scripts/blob/master/tools/eMMC/init-eMMC-flasher-v3.sh to flash my bbb. I've found the bone_capemgr under /sys/devices/platform and I was able to export a pwm port, I think. ( echo BB-PWM0 > /sys/devices/platform/bone_capemgr/slots and later echo 0 > /sys/class/pwm/export)
I see the directory with:

duty_cycle  enable  period  polarity  power  uevent

root@arm:/sys/class/pwm/pwmchip0/pwm0# 


when I cat polarity I get: normal. 


My question(s) is(are):


- Can I use ubuntu 16.04 on the bbb?

- What are the other values for polarity?


Any help is much appreciated.


Cheers, Gijs

Arnvid Lau Karstad

unread,
Jun 18, 2016, 5:05:11 PM6/18/16
to beagl...@googlegroups.com
Hi Gijs,

We're using Ubuntu 16.04 on our BBB based midi controller - and that saves about 30 seconds on the boot time and the system is generally much better behaving than under 14.04.
The image I use for flashing are from : http://elinux.org/BeagleBoardUbuntu  - basically using an SDCard with the flasher to flash.

I use an a bit of code in my apps to change the polarity - but basically it comes down to entering a 0 or 1 into the gpioXX/active_low

I've recently modified the simpleGPIO lib from Derek Molloy to include this code over the past weeks for a small project.


Br

Arnvid 





--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/e656b14f-4b68-457a-8b4f-4ce7a16e30b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages