Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI doesn't work on my RPi2 #42

Closed
sean2121 opened this issue May 25, 2015 · 0 comments
Closed

SPI doesn't work on my RPi2 #42

sean2121 opened this issue May 25, 2015 · 0 comments

Comments

@sean2121
Copy link

Hi,

This code doesn't work on my BCM2836 but it works my old BCM2835. Is there any plan to update? or any advice?

require 'pi_piper'
loop do
  value = 0
  PiPiper::Spi.begin do |spi|
    raw = spi.write [0b01101000,0]
    value = ((raw[0]<<8) + raw[1]) & 0x03FF
  end
  puts value
  sleep(1)
end
@sean2121 sean2121 changed the title SPI doesn't work on my Rpi2 SPI doesn't work on my RPi2 May 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant