Giter Site home page Giter Site logo

card10-nickname's Introduction

card10 - nickname

Nickname app for the card10 badge #cccamp2019

Features

  • Simple and advanced mode
  • battery indicator (needs to be tested for voltage thresholds)
  • customizable colors
  • turon on/off led (hold button for a few seconds right=off/left=on)
  • automatic day/night mode

Install

The nickname app should come pre-installed with your device. In order to install or update it manually follow these steps:

Boot your Card10 into USB-Storage mode (hold down right while pressing power).

There are plan to simplify installing of apps using various tools. Right now you need to either download the module from the hatchery and put it in the apps in a folder called card10_nickname including an __init__.py with the code and a metadata.json which you can get somewhere from the hatchery.

The second option is to simply take the nickname.py and drop it in the apps directory.

Configure

Simple

  1. Boot into USB storage mode
  2. Put a file called nickname.txt on your card10
  3. Write your nickname into the file (max 11 chars)
  4. Boot into normal mode
  5. Start the nickname.py app

Advanced

For more advanced nickname fun replace nickname.txt with a nickname.json with the following configuration

{
  "nickname": "card10",
  "subtitle": "cccamp2019",

  "background": [255,255,255],
  "fg_color": [153,186,0],
  "bg_color": [255,255,255],
  "fg_sub_color": [111,135,0],
  "bg_sub_color": [255,255,255],

  "background_night": [53,53,53],
  "fg_color_night": [153,186,0],
  "bg_color_night": [53,53,53],
  "fg_sub_color_night": [111,135,0],
  "bg_sub_color_night": [53,53,53],
  
  "battery": false,
  "battery_color_good": [0,255,0],
  "battery_color_ok": [255,215,0],
  "battery_color_bad": [255,0,0]
}

Nice to know:

  • You can leave out every value except for the nickname, this will use the default settings
  • If you leave out the text background the default background is taken
  • If you use #time as subtitle the current time will be displayed Note This is currently WIP since you cannot eaisly set the system time.

card10-nickname's People

Contributors

ronald avatar vabene1111 avatar

Watchers

 avatar  avatar

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.