Git Product home page Git Product logo

hoofy's Introduction

hoofy

more esp8266 bulbs; these use a serial protical. I think I've got it mostly figured out power on: þ,ð,NUL,BEL,NUL,NUL,STX tx:254,240,0,7,0,0,2,0,9,254,241 rx:254,240,0,19,1,0,2,1,7,181,7,181,7,181,0,0,0,0,0,2,75,254,241 254,240,0,9,0,0,68,1,1,0,79,254,241

tx:254,240,0,19,0,0,1,2,7,181,7,181,7,181,0,0,0,0,0,2,74,254,241 rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,2,7,181,7,181,7,181,0,0,0,0,0,2,138,254,241 tx:254,240,0,19,0,0,1,1,7,181,7,181,7,181,0,0,0,0,0,2,73,254,241 rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,1,7,181,7,181,7,181,0,0,0,0,0,2,137,254,241 tx:254,240,0,19,0,0,1,2,7,181,7,181,7,181,0,0,0,0,0,2,74,254,241 rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,2,7,181,7,181,7,181,0,0,0,0,0,2,138,254,241 tx:254,240,0,19,0,0,1,1,7,181,7,181,7,181,0,0,0,0,0,2,73,254,241 rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,1,7,181,7,181,7,181,0,0,0,0,0,2,137,254,241 tx:254,240,0,19,0,0,1,17,181,0,0,0,0,0,0,0,0,0,0,209,254,241 rx:254,240,0,7,10,1,0,9,254 241,254,240,0,19,0,0,65,1,7,181,0,0,0,0,0,0,0,0,0,1,17,254,241

on/off tx:254,240,0,19,0,0,1,2,8,0,8,0,8,0,6,12,0,0,0,0,64,254,241//off rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,2,8,0,8,0,8,0,6,12,0,0,0,0,128,254,241 tx:254,240,0,19,0,0,1,1,8,0,8,0,8,0,6,12,0,0,0,0,63,254,241//on rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,1,8,0,8,0,8,0,6,12,0,0,0,0,127,254,241 tx:254,240,0,19,0,0,1,2,8,0,8,0,8,0,6,12,0,0,0,0,64,254,241//off rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,2,8,0,8,0,8,0,6,12,0,0,0,0,128,254,241 tx:254,240,0,19,0,0,1,1,8,0,8,0,8,0,6,12,0,0,0,0,63,254,241//on rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,1,8,0,8,0,8,0,6,12,0,0,0,0,127,254,241 tx:254,240,0,19,0,0,1,1,7,218,0,0,0,74,0,0,0,0,0,1,64,254,241 // red rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,1,7,218,0,0,0,74,0,0,0,0,0,1,128,254,241 tx:254,240,0,19,0,0,1,1,0,0,7,144,0,37,0,0,0,0,0,0,209,254,241 // blue rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,1,0,0,7,144,0,37,0,0,0,0,0,1,17,254,241 tx:254,240,0,19,0,0,1,1,0,0,0,223,7,107,0,0,0,0,0,1,102,254,241 //green rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,1,0,0,0,223,7,107,0,0,0,0,0,1,166,254,241 tx:254,240,0,19,0,0,1,1,7,181,7,181,7,181,0,0,0,0,0,2,73,254,241 //white rx:254,240,0,7,1,0,1,0,9,254,241 254,240,0,19,0,0,65,1,7,181,7,181,7,181,0,0,0,0,0,2,137,254,241 9600 baud typedef struct { // uint16_t header;0xfe,0xf0 uint16_t len; uint8_t unknown_a;//0,1 uint8_t unknown_b;//0 uint8_t cmd;//? 1 uint8_t power;//1 on, 2 off uint16_t red;//2048 max uint16_t blue;//2048 max uint16_t green;//2048 max uint16_t white;//2048 max uint16_t unknown_c; uint8_t unknown_d;//0,1,3 mode? // uint16_t sum; the sum on the prev 17 bytes // uint16_t footer; 0xfe,0xf1 } lightpacket; union lightset { lightpacket settings; uint8_t raw[17]; }; red blue green tx:fe,f0,00,13,00,00,01,01,07,da,00,00,00,4a,00,00,00,00,00,01,40,fe,f1 // red tx:fe,f0,00,13,00,00,01,01,00,00,07,90,00,25,00,00,00,00,00,00,d1,fe,f1 // blue tx:fe,f0,00,13,00,00,01,01,00,00,00,df,07,6b,00,00,00,00,00,01,66,fe,f1 //green tx:fe,f0,00,13,00,00,01,01,07,b5,07,b5,07,b5,00,00,00,00,00,02,49,fe,f1 //white

head   len body                           sum of body  footer

tx:fe,f0, 0013 0000010107da0000004a0000000000 0140 fef1 // red tx:fe,f0, 0013 000001010000079000250000000000 00d1 fef1 // blue tx:fe,f0, 0013 00000101000000df076b0000000000 0166 fef1 //green tx:fe,f0, 0013 0000010107b507b507b50000000000 0249 fef1 //white 0,19,0,0,1,1,7,218,0,000,0,074,0,0,0,0,0,1,064 //red 0,19,0,0,1,1,0,000,7,144,0,037,0,0,0,0,0,0,209 //blue 0,19,0,0,1,1,0,000,0,223,7,107,0,0,0,0,0,1,102 //green 0,19,0,0,1,1,7,181,7,181,7,181,0,0,0,0,0,2,073 //white

red

blue

green

white

bulboff 254,240,0,19,0,0,1,2,7,181,7,181,7,181,0,0,0,0,0,2,74,254,241 bulbon 254,240,0,19,0,0,1,1,7,181,7,181,7,181,0,0,0,0,0,2,73,254,241

bulboff 254,240,0,19,0,0,1,2,8,0,8,0,8,0,6,12,0,0,0,0,64,254,241 bulbon 254,240,0,19,0,0,1,1,8,0,8,0,8,0,6,12,0,0,0,0,63,254,241

0,19,0,0,1,1,8,0,8,0,8,0,6,12,0,0,0,0,63

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.