Pages: [1]   Go Down
Author Topic: SPI library lacks defaults info.  (Read 273 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I suggest that information on the defaults for setDataMode and setBitOrder, etc be added to the library manual for the SPI library.
Mads
 
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 108
Posts: 5152
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Usually the lack of information on the default of a value means: don't count on it and set it explicitly. In the case of the SPI library I would strongly suggest to always set these two value even when the current default is the value you need.
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 538
Posts: 27139
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Whatever the defaults are, they work great for MAX7219, MAX7221, 74HC595, and TPIC6B595.
The most I've ever done was slow down the clock some for a Microchip ADC or DAC, I forget which one.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: