happycodingrobot / usb_led_badge Goto Github PK
View Code? Open in Web Editor NEWUSB LED Badge commandline tool
License: Other
USB LED Badge commandline tool
License: Other
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)) ===|
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!
my project want support of The Chinese language,but.. this library Not support.
What is the way of To solve issues .
Thanks.
Line 23 in 016d500
Error:
gcc -c -Os -o main.o main.c
main.c:45:2: warning: excess elements in array initializer
"\nExamples:\n"
^~~~~~~~~~~~~~~
main.c:45:2: note: (near initialization for ‘help’)
it should be:
static const char *help[4] = {
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.