LP55231: basic turn on commands for LP55231

Part Number: LP55231

Tool/software:

I have a board with a LP55231 on it. I'm using Yocto and it is in a locked state, recompiles take 4+hrs. I cannot compile C however I can do bash scripting. I have proven that I can read and writ to the device. 

how can I turn on LEDs without loading programs into the memory and doing all the Programmer counter stuff. 

i2cset -y [i2c channel] [address] [register] [value]

i2cset -y 0 0x33 0x00 0x40 # Set EN bit

i2cset -y 0 0x33 0x36 0x18 # Set Charge Pump to 1.5x

i2cset -y 0 0x33 0x05 0xff # Turn on all channels
 
i2cset -y 0 0x33 0x1B 0xff  #set D6 PWM to 100%

nothing is happening at this point. was hoping to see a LED on at this point. 

  • Hi,

    Our expert will check and update you soon,

  • Hi 

    I've checked the sequence that you posted. I can see D6 turn on. Can you double check if you can read back the value that you write, and share us the schematic of your board for further analysis. Thank you!

    BRs,

    Leon

  • I was able to get it working. not sure the exact reasons why it wasn't. also found out that i should set it on then just adjust the PWM as needed

    i2cset -y 0 0x33 0x00 0x40 #enable
    i2cset -y 0 0x33 0x04 0x01 #MSB output enable
    i2cset -y 0 0x33 0x05 0xFF #LSB output enable
    i2cset -y 0 0x33 0x36 0x1A #misc

    i2cset -y 0 0x33 0x16 0x00 #D1 PWM - Button Green
    i2cset -y 0 0x33 0x17 0x00 #D2 PWM - Button Blue
    i2cset -y 0 0x33 0x18 0x00 #D3 PWM -I/O Green
    i2cset -y 0 0x33 0x19 0x00 #D4 PWM -I/O Blue
    i2cset -y 0 0x33 0x1A 0x00 #D5 PWM -PWR Button Green
    i2cset -y 0 0x33 0x1B 0x00 #D6 PWM -PWR Button Blue
    i2cset -y 0 0x33 0x1C 0x00 #D7 PWM - Button Red
    i2cset -y 0 0x33 0x1D 0x00 #D8 PWM -I/O Red
    i2cset -y 0 0x33 0x1E 0x00 #D9 PWM -PWR Button Red

    i2cset -y 0 0x33 0x16 0x55 #D1 PWM -on 33%
    echo "D1: 2 Seconds - Button Green"
    sleep 2
    i2cset -y 0 0x33 0x16 0x00 #D1 PWM -off

    etc