Skip to content

Bunch o' changes #3

Closed
wants to merge 29 commits into from
Commits on Jan 18, 2012
  1. @lazyatom

    Allow flushing of print data.

    lazyatom committed Jan 18, 2012
    This is useful when, for example, debugging, if you want to ensure that something is printed without sending a line feed.
Commits on Jan 19, 2012
  1. @lazyatom

    Clean up whitespace.

    lazyatom committed Jan 19, 2012
    Delete trailing whitespace and change tabs into spaces.
  2. @lazyatom
  3. @lazyatom
  4. @lazyatom

    More whitespace tweaks.

    lazyatom committed Jan 19, 2012
  5. @lazyatom
  6. @lazyatom

    Add normal() method.

    lazyatom committed Jan 19, 2012
    I'm just following what's in the codesheet, really.
  7. @lazyatom

    Use printMode mask to consistently set formatting.

    lazyatom committed Jan 19, 2012
    I've also added upside-down, strike and double width modes this way.
  8. @lazyatom

    Allow printing of larger bitmaps.

    lazyatom committed Jan 19, 2012
    The maximum number of rows that can be printed at one time is 255 (since this is the byte limit), so we can print larger bitmaps by splitting them into chunks.
  9. @lazyatom
  10. @lazyatom
Commits on Jan 20, 2012
  1. @lazyatom

    Add a script to help generate custom bitmaps.

    lazyatom committed Jan 20, 2012
    Sometimes you want the bitmap to be pixel-perfect.
  2. @lazyatom
  3. @lazyatom

    Minor refactoring of underline.

    lazyatom committed Jan 20, 2012
    I don't believe sending the byte 10 (newline) is necessary, partially because sending even the remaining bytes seems to result in a newline.
  4. @lazyatom

    Misc fixes.

    lazyatom committed Jan 20, 2012
    I forgot to include definitions for strike methods, and this default argument should be in the cpp implementation.
  5. @lazyatom

    Removed incorrect comment.

    lazyatom committed Jan 20, 2012
    I believe an older copy of this library hanging around was causing me to see incoherent behaviour.
  6. @lazyatom

    Don't print a newline when stopping bold.

    lazyatom committed Jan 20, 2012
    It's useful to be able to make only certain words bold without interupting a sentence.
Commits on Jan 21, 2012
  1. @lazyatom

    Add a command to feed by pixel rows.

    lazyatom committed Jan 21, 2012
    And an explanation of why the normal feed doesn't use the command in the datasheet.
  2. @lazyatom

    Add more clarity to wake/sleep/offline/online.

    lazyatom committed Jan 21, 2012
    It's not clear from the datasheet if putting the printer offline also puts the board into a low power consumption mode, so I've renamed the methods to more closely correspond to the guidlines of the datasheet.
  3. @lazyatom
  4. @lazyatom
Commits on Jan 28, 2012
  1. @lazyatom

    The rows are bytes, not bits.

    lazyatom committed Jan 28, 2012
  2. @lazyatom
Commits on Feb 14, 2012
  1. @lazyatom

    Output width and height from image.

    lazyatom committed Feb 14, 2012
    Also, provide a Gemfile to install RMagick.
  2. @lazyatom
Commits on Mar 8, 2012
  1. @lazyatom

    Include printing from a Stream instance.

    lazyatom committed Mar 8, 2012
    This allows us to print from (for example) an SD file, or an Ethernet client, without
    needing to require either.
    
    The new  method expects the width and height to be
    encoded in the first four bytes of the stream - see  for an example.
  2. @lazyatom

    Allow setting of heat time by users.

    lazyatom committed Mar 8, 2012
    If this is too high, certain papers (like the one from Staples) will stick against the
    print head, spoiling printouts.
  3. @lazyatom

    Whoops, typo.

    lazyatom committed Mar 8, 2012
Commits on Mar 11, 2012
  1. @lazyatom

    Make dithering optional, and improve image output.

    lazyatom committed Mar 11, 2012
    Using pixel intensity is more sensible, and not dithering images that are already monochrome also increasing picture quality.
    
    We can also handle an optional output filename.
Something went wrong with that request. Please try again.