Recent

Author Topic: GPIO problem at startup  (Read 4086 times)

Matija

  • New Member
  • *
  • Posts: 16
GPIO problem at startup
« on: September 01, 2014, 02:30:18 pm »
Hello,
I have a simple program where on one GPIO pin I turn on/off led (17) and on second pin (23) a register a button.
This work normally, but when I restart RPI and start the program, LED won't turn on. Button is registered normally.
After I close the program and reopen it everything is working normally.

I try on startup open and close gpio and again open but no success.
I have SPI turn on at boot. I also wait 30sec. before first run of the program.

Does anybody have any suggestion?
Regards, Matija

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: GPIO problem at startup
« Reply #1 on: September 01, 2014, 09:12:31 pm »
sound's like some how you are braking spi's rules which is not support hotplugin
« Last Edit: September 01, 2014, 09:16:22 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε