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

Minor tweaks to port LPD8806 to work on Raspberry PI #19

Closed
wants to merge 3 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@flavio-fernandes

flavio-fernandes commented Feb 23, 2016

With this change, one can easily have LPD8806 working
on raspberry pi, when using it in conjunction with the
rpi wiring.

The code assumes using the rpi with non hardware-SPI.
I find that to be plenty fast, so there is little
motivation for bothering with that (at least on my
part :)).

Simple build steps for trying raspberry.cpp out:

g++ -DRASPBERRY_PI -c LPD8806.cpp
g++ -DRASPBERRY_PI -c raspberry.cpp
g++ -DRASPBERRY_PI -o raspberry raspberry.o LPD8806.o -lwiringPi
sudo ./raspberry

flavio-fernandes added some commits Feb 23, 2016

Minor tweaks to port LPD8806 to work on Raspberry PI
With this change, one can easily have LPD8806 working
on raspberry pi, when using it in conjunction with the
rpi wiring [1].

The code assumes using the rpi with non hardware-SPI.
I find that to be plenty fast, so there is little
motivation for bothering with that (at least on my
part :)).

Simple build steps for trying raspberry.cpp out:

  g++ -DRASPBERRY -c LPD8806.cpp
  g++ -DRASPBERRY -c raspberry.cpp
  g++ -DRASPBERRY -o raspberry raspberry.o LPD8806.o -lwiringPi
  sudo ./raspberry

[1]: http://wiringpi.com/
Fix copy and paste mistake
I made uint32u a short instead of an int. Oops!
Minor tweaks to port LPD8806 to work on Raspberry PI
With this change, one can easily have LPD8806 working
on raspberry pi, when using it in conjunction with the
[rpi wiring][rpiwiring].

The code assumes using the rpi with non hardware-SPI.
I find that to be plenty fast, so there is little
motivation for bothering with that (at least on my
part :)).

Simple build steps for trying raspberry.cpp out:

  g++ -DRASPBERRY_PI -c LPD8806.cpp
  g++ -DRASPBERRY_PI -c raspberry.cpp
  g++ -DRASPBERRY_PI -o raspberry raspberry.o LPD8806.o -lwiringPi
  sudo ./raspberry

[rpiwiring]: http://wiringpi.com/
@ladyada

This comment has been minimized.

Member

ladyada commented Jan 16, 2018

hiya this is cool but outside the scope of this library - and i think people would be more into using Python? so closing, but thank you for contributing!!

@ladyada ladyada closed this Jan 16, 2018

@flavio-fernandes

This comment has been minimized.

flavio-fernandes commented Jan 16, 2018

I agree. ;) No worries, @ladyada !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment