debian-n900/charge-pyneo.sh
2014-06-25 12:41:14 +02:00

11 lines
225 B
Bash

#!/bin/sh
i2cset -y -m 0x77 2 0x6b 0x04 0x50;
i2cset -y -m 0xff 2 0x6b 0x02 0x8c;
i2cset -y -m 0xff 2 0x6b 0x01 0xc8;
i2cset -y -m 0xc0 2 0x6b 0x00 0x00;
while true ; do
i2cset -y -m 0x80 2 0x6b 0x00 0x80;
sleep 28;
done