09.11.2012 Views

Contents - Raspberry PI Community Projects

Contents - Raspberry PI Community Projects

Contents - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Set up gpi pointer for direct register access<br />

setup_io();<br />

// Switch G<strong>PI</strong>O 7..11 to output mode<br />

/************************************************************************\<br />

* You are about to change the G<strong>PI</strong>O settings of your computer. *<br />

* Mess this up and it will stop working! *<br />

* It might be a good idea to 'sync' before running this program *<br />

* so at least you still have your code changes written to the SD-card! *<br />

\************************************************************************/<br />

// Set G<strong>PI</strong>O pins 7-11 to output<br />

for (g=7; g

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!