GithubHelp home page GithubHelp logo

cutiepi-middleware's Introduction

MCU protocol

Msg Type MCU message Pi message
Button event 1 Short click: 0x01 ACK: 0xF1
1 3 seconds press: 0x02 (power on) No ACK
1 6 seconds press: 0x03 (power off) Confirm: 0xF3, Cancel: 0xFC
1 10 seconds press: force poweroff (no message) No ACK
Battery event 2 2 bytes message, send every second, unit in mv
Charge event 3 Charging: 0x4 ACK: 0xF4
3 Not charging: 0x5 ACK: 0xF5
Version event 4 0xF6
Cutoff event 5 0xF7

Payload format

header msg type length of payload payload crc
0xa55a 1 byte 2 bytes sum of all other bytes

cutiepi-middleware's People

Contributors

penk avatar hamrouche 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.