Coder Social home page Coder Social logo

sketch's Introduction

Description

This is a drawing program that is meant to be run on a Kobo e-reader.

It has only been tested on the Glo HD and the Aura ONE.

Installation

First install fmon.

And then issue: unzip sketch.zip -d SD_ROOT.

Usage

Use your fingers to draw.

A short press/release of the power button will:

  • Save and clear the canvas if it isn't empty.
  • Quit if it's empty.

A long press/release (held more than 2 seconds) of the power button will inverse the displayed colors.

Configuration

If the touch feedback doesn't match the position of your fingers, add the following:

export SKETCH_UNSWAP_XY=1
export SKETCH_UNMIRROR_X=1

in sketch.sh after export PRODUCT….

Building

The OS used on the Kobo devices is Linaro 2011.07.

In order to build for this OS / architecture you can, for example, install Ubuntu LTS 12.04 (the GLIBC version must be old enough) in a VM and install the following package: gcc-4.6-arm-linux-gnueabihf.

Install the appropriate target:

rustup target add arm-unknown-linux-gnueabihf

Append this:

[target.arm-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

to ~/.cargo/config.

The binary can then be generated with:

cargo rustc --release --target=arm-unknown-linux-gnueabihf -- -C target-feature=+v7,+vfp3,+a9,+neon

You can tell what features are supported by your device from the output of cat /proc/cpuinfo.

sketch's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

szybet

sketch's Issues

How do you like the language so far?

Good to see you picked rust for this project! How is it holding up so far? Do you find it a good language for developing apps for embedded devices like kobo readers?

I have been seriously considering rewrite the core of KOReader with rust for awhile. Mostly the UI loop, but perhaps also the widget system. Maybe we can share some of the code in plato ;)

Open saved files in sketch

It would be nice to have the posiblity of load png files in sketch to review or edit. I think that would make this application, realy interesting.

I am a developer, and I own a kobo glo hd, so I think i can help you to develop this feature.

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.