Hello all.

First, i introduce myself. Olivier, having basic programming language.

I bought a Beaglebone Black.

My goal is:

* Use OpenBSD and nothing else, no matter how is difficult, i will use what is 
available
* Learn how to program the BBB. (I am aware that C libraries for this platform 
are not really distributed)
* Make home automation (I also play with arduino uno)

Status:

For the moment, I manage to light via GPIOCTL, a LED on the pin 23 header P9.

$ doas gpioctl gpio1 17 on

my /etc/rc.securelevel:

# Digital Output:
gpioctl gpio1 17 set out pinH9_23
gpioctl gpio3 21 set out pinH9_25
gpioctl gpio3 25 set out pinH9_27

Question : in this way (I am not an expert in programming):

_ Should I create a tree (directory) to turn on my LED in C language ?
_ Should I instead use the physical addresses to turn on my LED in C language ?
_ Regarding analog inputs, are they recognized by the kernel as GPIO ?
_ Do you have some interesting link to documentations, to help me ?


Thanks in advance.

Olivier.

Reply via email to