Go Down

Topic: Is this kind of thing available on the Arduino? (Read 363 times) previous topic - next topic

shobley

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?


etracer

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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy