Code Monkey home page Code Monkey logo

unicorn-hat's Introduction

Unicorn HAT Pi library

This is a Java port of the pimoroni/unicorn-hat project with some extra bits and pieces.

  • No pyhton

unicorn-hat's People

Contributors

toby-weston-db avatar tobyweston avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

unicorn-hat's Issues

Segmentation Fault

I have tried using parts of this repo for a project and I am receiving the following issue:

Starting program: /usr/bin/java -jar rpi-test.jar
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0x76422470 (LWP 7912)]
[New Thread 0x670f1470 (LWP 7913)]
[New Thread 0x67071470 (LWP 7914)]
[New Thread 0x67021470 (LWP 7915)]
[New Thread 0x66e5a470 (LWP 7916)]
[New Thread 0x66e0a470 (LWP 7917)]
[New Thread 0x66d8a470 (LWP 7918)]
[New Thread 0x66bff470 (LWP 7919)]
lib path: /home/limpygnome/java/libws2811.so
loaded

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x76422470 (LWP 7912)]
ws2811_led_set (channel=, lednum=0, color=16777215) at rpi_ws281x_wrap.c:213
213 channel->leds[lednum] = color;

With the following code:
AdafruitNeoPixel adafruitNeoPixel = new AdafruitNeoPixel(59, 18, 800000, 5, false, 255, 0);
adafruitNeoPixel.setBrightness(1.0);
for (int i = 0; i < 25; i++)
adafruitNeoPixel.setPixelColor(i, (short) 255, (short)255, (short)255);
adafruitNeoPixel.show();
adafruitNeoPixel.cleanup();

The issue is the call to ws2811_led_set for the very first pixel.

Any suggestions/ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.