WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: GPIO on the Raspberry Pi  (Read 13592 times)

Offline cattail

  • WikiUser
  • *
  • Posts: 16
Re: GPIO on the Raspberry Pi
« Reply #15 on: February 17, 2013, 06:15:09 PM »
(Just write here to memory)
After a clean QEMU piCore ,
use:   tce , press "s" 4 search, "q" 4 quit info, "i" 4 install these  tcz(s)

Xorg-7.6
Xprogs
flwm
wbar

I install XWINDOW on mini CLI mode piCore  , and startx can working.
(So I can use Apps select fastest mirror to speed up install tczs.)

install gcc.tcz (tree), python.tcz (tree) , eglibc_base-dev.tcz, openssl-1.0.0.tcz,
(compile-essentials.tcz is not requited?)
I can do this OK
   cd RPi.GPIO-0.4.2a
   sudo python setup.py install

----------------
Finaly I get RPi.GPIO response , but not know by python setup.py install or new RPi.GPIO(tcz) in repo :

>>>import RPi.GPIO as GPIO
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
RPi.GPIO.SetupException: This module can only be run on a Raspberry Pi!

I guess QEMU not supply GPIO HW simulate .
 I have a real Pi board, I'll test on it ( but maybe it have some usb power supply issue...)