Git Product home page Git Product logo

catdrive-fix's Introduction

PLEASE READ FIRST BEFORE PROGRESSING

EVERY COMMAND BELOW MUST BE EXECUTED AS ROOT

EVERY COMMAND BELOW MUST BE EXECUTED AS ROOT

EVERY COMMAND BELOW MUST BE EXECUTED AS ROOT

led ctl cmd structer

#init the led controler
i2cset -y -f 0 0x45 0x00 0x55   # turn off all led
i2cset -y -f 0 0x45 0x01 0x01   # reset the led controller
i2cset -y -f 0 0x45 0x30 0x07   # led on

# set power status for led for always on mode
i2cset -y -f 0 0x45 0x31 0x03   #R
i2cset -y -f 0 0x45 0x32 0x03   #G
i2cset -y -f 0 0x45 0x33 0x03   #B

# set max power fo reach led for flashing mode
i2cset -y -f 0 0x45 0x31 0x72   #R
i2cset -y -f 0 0x45 0x32 0x72   #G
i2cset -y -f 0 0x45 0x33 0x72   #B

#control how long each led takes to go from 0 to 100
i2cset -y -f 0 0x45 0x37 0x44   #R
i2cset -y -f 0 0x45 0x3a 0x55   #G
i2cset -y -f 0 0x45 0x3d 0x66   #B

# control how long each led takes to go from 100 to 0
i2cset -y -f 0 0x45 0x38 0x44   #R
i2cset -y -f 0 0x45 0x3b 0x55   #G
i2cset -y -f 0 0x45 0x3e 0x66   #B

# 0-255,the highter the brighter the led goes
i2cset -y -f 0 0x45 0x34 128    #R
i2cset -y -f 0 0x45 0x35 128    #G
i2cset -y -f 0 0x45 0x36 128    #B

# use when doing all muti color rainbow effect
# dekay between each led on/off??? i guess
# without this on muti color just have 2 color or less sometimes
i2cset -y -f 0 0x45 0x39 0x40
i2cset -y -f 0 0x45 0x3c 0x40
i2cset -y -f 0 0x45 0x3f 0x40

led preset

Peraonal favourit flashing violet on catdrive plus

i2cset -y -f 0 0x45 0x00 0x55
i2cset -y -f 0 0x45 0x01 0x01
i2cset -y -f 0 0x45 0x30 0x07
i2cset -y -f 0 0x45 0x31 0x72
i2cset -y -f 0 0x45 0x33 0x72
i2cset -y -f 0 0x45 0x37 0x33
i2cset -y -f 0 0x45 0x38 0x33
i2cset -y -f 0 0x45 0x3d 0x33
i2cset -y -f 0 0x45 0x3e 0x33
i2cset -y -f 0 0x45 0x34 128
i2cset -y -f 0 0x45 0x36 128

red led on

i2cset -y -f 0 0x45 0x00 0x55
i2cset -y -f 0 0x45 0x01 0x01
i2cset -y -f 0 0x45 0x30 0x07
i2cset -y -f 0 0x45 0x31 0x03
i2cset -y -f 0 0x45 0x34 255

green but orange for big led on green for small

i2cset -y -f 0 0x45 0x00 0x55
i2cset -y -f 0 0x45 0x01 0x01
i2cset -y -f 0 0x45 0x30 0x07
i2cset -y -f 0 0x45 0x32 0x03
i2cset -y -f 0 0x45 0x35 255

blue led on

i2cset -y -f 0 0x45 0x00 0x55
i2cset -y -f 0 0x45 0x01 0x01
i2cset -y -f 0 0x45 0x30 0x07
i2cset -y -f 0 0x45 0x36 255

blue flashing

i2cset -y -f 0 0x45 0x00 0x55
i2cset -y -f 0 0x45 0x01 0x01
i2cset -y -f 0 0x45 0x30 0x07
i2cset -y -f 0 0x45 0x33 0x72
i2cset -y -f 0 0x45 0x3d 0x44
i2cset -y -f 0 0x45 0x3e 0x44
i2cset -y -f 0 0x45 0x36 255

red flashing

i2cset -y -f 0 0x45 0x00 0x55
i2cset -y -f 0 0x45 0x01 0x01
i2cset -y -f 0 0x45 0x30 0x07
i2cset -y -f 0 0x45 0x31 0x72
i2cset -y -f 0 0x45 0x37 0x44
i2cset -y -f 0 0x45 0x38 0x44
i2cset -y -f 0 0x45 0x34 255

orange flashing

i2cset -y -f 0 0x45 0x00 0x55
i2cset -y -f 0 0x45 0x01 0x01
i2cset -y -f 0 0x45 0x30 0x07
i2cset -y -f 0 0x45 0x32 0x72
i2cset -y -f 0 0x45 0x3a 0x55
i2cset -y -f 0 0x45 0x3b 0x55
i2cset -y -f 0 0x45 0x35 255

rainbow color

i2cset -y -f 0 0x45 0x00 0x55
i2cset -y -f 0 0x45 0x01 0x01
i2cset -y -f 0 0x45 0x30 0x07
i2cset -y -f 0 0x45 0x31 0x72
i2cset -y -f 0 0x45 0x32 0x72
i2cset -y -f 0 0x45 0x33 0x72
i2cset -y -f 0 0x45 0x37 0x44
i2cset -y -f 0 0x45 0x3a 0x55
i2cset -y -f 0 0x45 0x3d 0x66
i2cset -y -f 0 0x45 0x38 0x44
i2cset -y -f 0 0x45 0x3b 0x55
i2cset -y -f 0 0x45 0x3e 0x66
i2cset -y -f 0 0x45 0x39 0x40
i2cset -y -f 0 0x45 0x3c 0x40
i2cset -y -f 0 0x45 0x3f 0x40
i2cset -y -f 0 0x45 0x34 255
i2cset -y -f 0 0x45 0x35 255
i2cset -y -f 0 0x45 0x36 255

WARNING

ALL COMMAND BELOW ONLY APPLY TO CATDRIVE RUNING DSM7

ALL COMMAND BELOW ONLY APPLY TO CATDRIVE RUNING DSM7

ALL COMMAND BELOW ONLY APPLY TO CATDRIVE RUNING DSM7

big catdrive poweroff

/usr/bin/systemctl --force poweroff
i2cset -y -f 0 0x45 0x77 0xc6
sleep 1
reboot

small catdrive poweroff

/usr/bin/systemctl --force poweroff
i2cset -y -f 0 0x45 0x00 0x55
i2cset -y -f 0 0x45 0x01 0x01
i2cset -y -f 0 0x45 0x31 0x33
i2cset -y -f 0 0x45 0x32 0x33
i2cset -y -f 0 0x45 0x33 0x33
i2cset -y -f 0 0x45 0x30 0x07
i2cset -y -f 0 0x45 0x34 128
i2cset -y -f 0 0x45 0x35 0
i2cset -y -f 0 0x45 0x36 0

catdrive-fix's People

Contributors

little-karl avatar

Watchers

James Cloos 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.