Hi Lucas! On Wed, Feb 10, 2016 at 04:53:07PM +0100, Lucas Jenß wrote: > does anyone happen to know how to use the coulomb counter on the MSBA2? I’ve > been told it has one, but haven’t been able to find any examples on its usage > :/
The device is called ltc4150. Take a look at http://doc.riot-os.org/group__drivers__ltc4150.html Basically, ltc4150_start() and ltc4150_get_X() would do the trick. However, there's a little "but". The board specific part (see https://github.com/RIOT-OS/RIOT/blob/b0045b21df1fc6eae291569814a77cc117b8e061/boards/msba2-common/drivers/msba2-ltc4150.c) has been factored out a while ago, but I guess it shouldn't be too difficult (TM) to re-import this. Cheers, Oleg P.S. There's even a shell command for it. -- WHO HAS ANY ARP JOKES?
signature.asc
Description: PGP signature
_______________________________________________ users mailing list [email protected] https://lists.riot-os.org/mailman/listinfo/users
