Skip to content

uranuschang/screenduo4linux

 
 

Repository files navigation

screenduo4linux

Asus ScreenDUO gadget text This project builds on the traditional ability to send a specially prepared picture to the Asus screenDUO. It allows you to send multiline text to the device (via bash or other program). It builds on the work of others, as seen in main.c. It needs more work (this application cannot use/support the device buttons). It can automatically wrap end of line text and uses \n to send newlines; uses \c[0-F] to set preset colors (see colorpick.sh for an example); uses \aRRGGBB to change text color where each of RR GG and BB can take values from 00 to FF (hexidecimal); uses \px,y, to set a pixel in the current color at position x,y where on this device x can range from 0 to 319 and y can range from 0-239; \bx1,x2,y1,y2, creates a box in the current color at locations denoted by x1, x2, y1 and y2. Note the use of commas in the examples, particularly the trailing commas in the pixel and box examples. Example: ./duo "\aFF0000\b0,319,0,239,\a00FF00Fred" makes the screen FF0000 (red) from x(0-319) y(0-239) ie: the whole screen, then changes the current color to 00FF00 (green) and prints Fred (in green) on the top line (although green text on a red background almost looks yellow).

Use: ./duo mytext or ./duo "mytext\nsecond line\nThird line" You can also use (without quotes) ./duo text\nsecondline TODO: 1) color text (already done, run colorpick.sh or duoinfo.sh). 1a) allow the user to set any (rgb) color (done) 2) drawing graphs (in any color) (done - can draw an arbitrary box in any color) 3) button input (possibly pulling scan data using lirc) 4) command line picture with color text overlaid. The 8x8 font file is available here but also available at other places on github (and has its own attribution in the file). I may consider using or building another font file that would look better on this device.

Possible uses: I have created duoinfo.sh to monitor system activity. You could also use this to monitor sound tracks playing, network activity, disk capacity, users on a network server, etc. You could also use it to monitor dmesg or any other system activity. I have only tested it using bash, but any other text output should work. You can't (yet) pipe data to it (unlike most unix applications) but I suspect this should be very easy to do (and currently when you just type ./duo on the command line it gives you help messages, and use examples) this may be removed in the future.

About

Asus ScreenDUO gadget text

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 48.1%
  • Objective-C 34.6%
  • Shell 16.2%
  • Makefile 1.1%