Jump to content

GPIO switches on used ports Nano Pi NeoCore


Johhny Blue

Recommended Posts

Hi,

 

I realise the NeoCore is not yet supported, but I hope someone can help me with a problem that I am having using the GPIO as buttons.

 

I would like to use the gpio marked

GPIOPA13,P A14, PA15,P A16 and PA2

 

I think these are used by the UART and SPI - I don't require this functionality.

 

I think I have to modify the fex, I have looked, but do not want to kill my system

 

Isit possible to use those gpio?

 

Can someone point me in the right direction?

TIA.

J.

 

Link to comment
Share on other sites

Hey Igor.

Thanks for the reply. I checked out your links and it is way beyond me.

I looked the current fex file and found these 2 occurrences of PA 15

[card_boot]
logical_start = 40960
sprite_work_delay = 500
sprite_err_delay = 200
sprite_gpio0 = port:PA15<1><default><default><default>
next_work = 3

and

[spi1]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA13<2><1><default><default>
spi_sclk = port:PA14<2><default><default><default>
spi_mosi = port:PA15<2><default><default><default>
spi_miso = port:PA16<2><default><default><default>

and PA16

[audio0]
audio_used = 1
lineout_vol = 31
cap_vol = 5
audio_hp_ldo = "none"
adcagc_used = 0
adcdrc_used = 0
dacdrc_used = 0
adchpf_used = 0
dachpf_used = 0
audio_pa_ctrl = port:PA16<1><default><default><0>

So I really don't know what to change it to (without killing my system), that will allow me to connect a button between that port and ground.

Is it even possible with those ports or should I look elsewhere?

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines