Sensus library
#3
(10-02-2017, 12:17 AM)MarkHaysHarris777 Wrote:
(10-01-2017, 10:44 AM)Artyom Wrote: Who can provide information (somethig like GPIO24 - Physical pin 3)?
Who is ready to test (Need work Linux, 1 LED, 1 resistor)?


Artyom:  please see this thread posts #1 thru #5 particularly.

Several scripts have been provided in that thread;  please review all of them.   In particular you may find the script called  name2gpio.sh  to be helpful for you.  Use the pinout chart to associate the physical pin to the pad name|number, and then use  name2gpio.sh  to convert the pad nam|num to the gpio#.

I can answer questions for you here, or you may contact me on the IRC (see addy below) and we can talk live;

Shy

Hi. As you can see here https://github.com/blademoon/sensus-libr...s_gpio.cpp (int gpio_calculate_pin_number (int pin_number)) I do not use different kinds of calculations to get the port number. I use a direct mapping - the port number to the physical pin number.
I think that this is whiter than a simple and quick method. Although I'm ready to listen to constructive criticism.
  Reply


Messages In This Thread
Sensus library - by Artyom - 10-01-2017, 10:44 AM
RE: Sensus library - by MarkHaysHarris777 - 10-02-2017, 12:17 AM
RE: Sensus library - by Artyom - 10-02-2017, 08:08 AM
RE: Sensus library - by MarkHaysHarris777 - 10-02-2017, 08:40 AM
RE: Sensus library - by Artyom - 10-02-2017, 10:10 AM
RE: Sensus library - by MarkHaysHarris777 - 10-02-2017, 11:32 AM
RE: Sensus library - by Artyom - 11-14-2017, 09:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)