Pages: [1]   Go Down
Author Topic: Is this kind of thing available on the Arduino?  (Read 315 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 30
Needs more lasers...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I just saw this BASIC stamp code.

SHIFTOUT sda, sclk, MSBFIRST, [1\4,wy\12,0\1]

Looking at the syntax of the shiftout routine - are these bitwise ops available on the Arduino?

Logged

Indiana
Offline Offline
Full Member
***
Karma: 1
Posts: 234
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Shiftout functionality is similarly supported.

http://www.arduino.cc/en/Reference/ShiftOut

From your example it looks like it might be trying to bitbang I2C communications.  If that's the case, then you're much better off using the Wire library to utilize the hardware I2C support.

http://wiring.org.co/reference/libraries/Wire/index.html
Logged

Pages: [1]   Go Up
Jump to: