Press escape to exit fullscreen

{{sketch.instructions}}

CC {{sketch.licenseObject.short}}

Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Capture Screenshot

ThermalPrinter library

{{$t('general.by')}}
This is a library to facilitate printing on the thermal printer sold from Adafruit. It supports printing text, barcodes, and images. Almost all functions are documented except the ones used for converting color or grayscale images to black and white. The function "printImageWithEffect()" converts the supplied image to grayscale, resizes it to one third of the printer resolution, calculates for each pixel the amount of gray and transforms it to a 3x3 grid of pixels which has some pixels black and some white effectively making it look more or less black. Enyoj
We recovered an unsaved version of this sketch. Please review your changes below.

As a Plus+ Member feature, this source code is hidden by the owner.

  • {{co.title}}
    {{$t('sketch.mode-pjs')}} {{$t('general.learnMore')}}
    Select mode or a template
    {{liveCodeLink}}
    • {{l.url.substr(l.url.lastIndexOf('/') + 1)}}
    {{$t('sketch.layoutDescription')}}

    {{k.category}}
    {{k.label}}
    {{k.description}}

    {{$t('sketch.seeMoreShortcuts')}}

    Versions are only kept for 7 days.
    Join Plus+ to keep versions indefinitely!

    {{$t('general.joinPlus')}}


    {{$t('sketch.versionsSummarized')}}