GithubHelp home page GithubHelp logo

meltir / badsmoker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

A python micro:bit v2 project to slow down bad habbits - press the button and get a bad noise if you are doing it too often. xmas project.

License: MIT License

Python 100.00%

badsmoker's Introduction

badsmoker

A python micro:bit v2 project to slow down bad habbits - press the button and get a bad noise if you are doing it too often. xmas project.

I am drinking beer as I write this, so do not take it seriously.
I need to figure out if this can be unit tested or something and i can build a proper pipeline for micropython.

Concept for MVP

Take in buttons, count up and down, keep a timer, show something when interacting.

Concept for RC1:

show me if ive had my last cigarette in under 15/30 minutes

timers (beeps, waits, buttons, flashes) should be variables in case they are annoying.

levels of bad - denoted by noise and flashing entire screen

  • >45 minutes, good (center flash twice full bright) (two short hight beeps)
  • 30-45 mintues - bad, mild (outer pixels flash, half bright) (short low beep)
  • 15-30 minutes - very bad (all red flash, half bright) (low long beep)
  • less than 15 minutes very, very bad (all red flash twice (.5s on, .2s off, .6s on, full bright) (low long beep, two high/noisy short random bursts)

if under 25 dots, counter displays number of dots, with randomly rotating disabled dots to match count
if over 25 smokes today, scroll number, turn off for 3 seconds, scroll again
after 1 minute, fade to min brightness
after 3 minutes, disable display (deep sleep ? wakeup by gyro/brightness ?)

button right - increase counter, beep with bad level
if under 30 seconds since button right, if button left, twice in 3 seconds, silly beep (mid.2s-high.8s), hold down button for .5sec(?) to cancel last smoke, happy beep, update timer

badsmoker's People

Contributors

meltir avatar

Watchers

 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.