NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » I2C Nerdkit Library
November 08, 2009 by tech20 |
I have just modified a project from www.avrbeginner.net to work as a addition to the nerdkit library. If anyone's interested, I'll post it in the pastebin. |
---|---|
November 09, 2009 by jbremnant |
Hi tech20 I am interested. I've been mucking around with TWI (I2C) code from arduino source on NK. That code is implemented with TWI_vect interrupt, but I couldn't get it to work. I wrote a non-interrupt based Master-to-Slave I2C routines, and it works, but I would ideally like an interrupt version working.. |
November 09, 2009 by tech20 |
Mine is not interrupt based, but i have one that is. Mine that i revised is setup mainly for basic device use and simplicity, as in data-logging using EEPROM |
November 22, 2009 by martelr |
I would be interested. Where is the pastebin? |
June 08, 2010 by n3ueaEMTP |
I too am interested... Any links to the Pastebin page? Thanks |
June 09, 2010 by tech20 |
Hmm...more interest than before ; ). I'll see if I can dig out some source for it with a modified makefile, hope it works out for you. |
June 09, 2010 by treymd |
very nice |
June 17, 2010 by tech20 |
Wow this was on my stolen flash drive, I will try to find a possible alternate source of my source code and look through a lot of other places, wish me luck :) |
September 09, 2010 by Ralphxyz |
Just for the record, in case anyone else wonders where the/a pastebin lies. http://nerdkits.pastebin.com/ look in the Sub Domain Archive! Ralph |
September 09, 2010 by tech20 |
http://nerdkits.pastebin.com/fa884005 and http://nerdkits.pastebin.com/f23917fdb , thank everyone at pastebin for a great archive |
September 09, 2010 by Rick_S |
If you are looking for good general purpose libraries including an I2C (TWI) library, check out the ones done by Peter Fluery. I've used them and they work well and are documented well. Rick |
September 10, 2010 by Rick_S |
Here is some sample code I wrote using the library from Peter Fluery to display the temerature read with the nerdkit on a 2 digit 7 segment display using a Phillips saa1064 I2C Display driver IC. Don't know if it'll help or not, but it may give you an idea how the library can be used.
Rick |
October 30, 2010 by hipitarius |
Rick_s I have downloaded the i2cmaster library from Peter Fluery's website. But I am still having trouble getting anything to compile. Where should I put the i2cmaster.h and i2cmaster.s files? Do I need to change my makefile for the project? Should I add them to the libnerdkits folder, and modify that makefile and then compile it there and include the same as the uart library with (#include "../libnerdkits/uart.h")? Any help is greatly appreciated. Thanks, Todd |
October 30, 2010 by Ralphxyz |
Hi Todd, the i2cmaster.h goes in your project folder along with the source that calls it (#include "i2cmaster.h"). It can go else where but then you have to deal with the path. Ralph |
Please log in to post a reply.
Did you know that you can generate hundreds of volts AC from your microcontroller with a little bit of circuitry? Learn more...
|