No you can't, at least not if its assembly language, as the Arduino uses a different RISC architecture.Can i use arduino code that i have already.
Code: Select all
include 'DexBasic\DexBasic.inc' ; pinMode GPIO16, OUTPUT ; set as output ; LetsLoop: ; a label ; digitalWrite GPIO16, HIGH ; set LED on delayMicroseconds 1000000 ; waits 1 second digitalWrite GPIO16, LOW ; set LED off delayMicroseconds 1000000 ; waits 1 second ; goto LetsLoop ; align 4 ProgramSize: ScreenBuffer:
The Arduino language is a version of C. There is an article showing you how to write, compile and execute a C program on the Pi in issue 3 of The MagPi, page 22.ChadP wrote:Dumb question but how do i use the gpio pins, where do i put the code in, im running wheezy. Can i use arduino code that i have already.