I've found it usually took less effort to write my own drivers from scratch= than to figure out someone's library docs. I just did that for GPS parsi= ng in Arduino last weekend, and I'm doing it for a SPI ADC chip now. I've= also found that my drivers tend to be smaller and faster than the typical = libraries.=20 -- David VanHorn Lead Hardware Engineer Backcountry Access, Inc. 2820 Wilderness Pl, Unit H Boulder, CO =A080301 USA phone:=A0303-417-1345 =A0x110 email:=A0david.vanhorn@backcountryaccess.com=A0 -----Original Message----- From: piclist-bounces@mit.edu On Behalf Of Forres= t Christian (List Account) Sent: Monday, October 28, 2019 2:34 PM To: Microcontroller discussion list - Public. Subject: Re: [PIC] I need help with my I2C code. Have you considered just throwing away the driver and manipulating the i2c = peripheral directly? The datasheet typically has enough data for one with modest coding skills to write a serviceable chunk of code. I've learned over the years that often for comms and i/o it is better to just ignore the drivers and go afte= r the device directly, as the driver often makes assumptions which are not = relevant to your specific situation. On Mon, Oct 28, 2019 at 1:18 PM James Burkart wrote: > What I need is a well commented driver that doesn't have bugs that=20 > renders it almost useless. > > -- > Sincerely, > > James Burkart > *925.667.7175* > > > On Mon, Oct 28, 2019 at 1:00 PM Nicola Perotto=20 > > wrote: > > > > > > > On 28/10/2019 19:34, James Burkart wrote: > > > I'm not sure what you're asking for. > > > > > I don't have a flow chart, as it is > > I already know... ;-) > > > > > the MCC generated code. It is also quite complex and I'm just=20 > > > barely > good > > > enough to step through the code trying to debug it. > > If the code is complex you NEED some kind of "flow chart" (I used=20 > > quotes...). > > It has not to be "canonical" nor complete but drawing a scheme of=20 > > what you are trying to do is very useful :-) > > Nic > > > > -- > > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive=20 > > View/change your membership options at=20 > > http://mailman.mit.edu/mailman/listinfo/piclist > > > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive=20 > View/change your membership options at=20 > http://mailman.mit.edu/mailman/listinfo/piclist > -- - Forrest -- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/chang= e your membership options at http://mailman.mit.edu/mailman/listinfo/piclis= t --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .