Giter Site home page Giter Site logo

usb_led_badge's People

Contributors

happycodingrobot avatar twoinke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

usb_led_badge's Issues

error: 'ZLIB_VERSION' undeclared -> no libpng12 in Debian 9

In Debian 9 it is only libpng16 available, no libpng12.

||=== Build: Debug in led_badge_test (compiler: GNU GCC Compiler) ===|
/ramdisc/USB_LED_Badge-master/readpng.c||In function 'readpng_version_info':|
/ramdisc/USB_LED_Badge-master/readpng.c|57|error: 'ZLIB_VERSION' undeclared (first use in this function)|
/ramdisc/USB_LED_Badge-master/readpng.c|57|note: each undeclared identifier is reported only once for each function it appears in|
/ramdisc/USB_LED_Badge-master/readpng.c|57|error: 'zlib_version' undeclared (first use in this function)|
/ramdisc/USB_LED_Badge-master/readpng.c||In function 'readpng_get_image':|
/ramdisc/USB_LED_Badge-master/readpng.c|238|warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'png_uint_32 {aka unsigned int}' [-Wformat=]|
/ramdisc/USB_LED_Badge-master/readpng.h|43|note: in definition of macro 'Trace'|
/ramdisc/USB_LED_Badge-master/readpng.c|238|warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'png_uint_32 {aka unsigned int}' [-Wformat=]|
/ramdisc/USB_LED_Badge-master/readpng.h|43|note: in definition of macro 'Trace'|
||=== Build failed: 2 error(s), 2 warning(s) (0 minute(s), 0 second(s)) ===|

Debug output - only as info

Only as information. Here is my output in debug mode:

Library versions:
   Compiled with libpng 1.6.28; using libpng 1.6.28.
   Compiled with zlib 1.2.8; using zlib 1.2.8.

Arguments: 2
 0: <./led_badge_test>
 1: <-h>
Device Found
  type: 0416 5020
  path: 0001:000c:00
  serial_number: (null)
  Manufacturer: LSicroelectronics
  Product:      LS32 Custm HID

Manufacturer String: LSicroelectronics
Product String: LS32 Custm HID
Serial Number String: 
open: 0
USB Led-Badge CLI
Copyright (C) 2018 HappyCodingRobot

Usage: ./led_badge_test [options...]

Options:
        -h  Show help.
        -i  Set message index [0..7].
        -m  Set message text.
        (-p  Load graphic message (as .png).       ->>> TODO! )
        -s  Set the message speed [1..8].
        -e  Set the message effect [0..8].
                0: to left       1: to right
                2: scroll up     3: scroll down
                4: Freeze        5: Animation
                6: Snow          7: Volume
                8: Laser
        -b  Blink message.
        -f  Set frame for message.
        -B  Set the badge brightness [0..3]. This is for all messages.
        -D  Demo mode. Use as the only argument.

Examples:
        set message with effect and speed:  (null) -i <idx> -
           ->>>> TODO! 

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.