Skip to content

Driver for an Arduino to interface with the TakkTile TakkStrip

Notifications You must be signed in to change notification settings

TakkTile/takktile_arduino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

This howto is designed to help using the Arduino code

To download it:

git clone --recursive https://github.com/TakkTile/takktile_arduino.git

Fast I2C Communication

(from here: http://arduino.cc/forum/index.php/topic,16793.0.html)

the atmega-hardware can do 400 KHz, but you have to tweak the Wire-library in file hardware/libraries/Wire/utility/twi.h.

Near the top of the file you see :

#ifndef TWI_FREQ

#define TWI_FREQ 100000L

#endif

If you change that to:

#ifndef TWI_FREQ

#define TWI_FREQ 400000L

#endif

The I²C bus should run at 400kHz

But you also have to the delete the files

hardware/libraries/Wire/Wire.o

hardware/libraries/Wire/utility/twi.o

This will force the compiler to recompile these files.

About

Driver for an Arduino to interface with the TakkTile TakkStrip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 30.2%
  • MATLAB 22.1%
  • Python 22.0%
  • C++ 17.1%
  • M 8.6%