Hi
ich habs zwar nicht getestet, kann ich morgen mal machen, aber hier ist das was ich dazu gefunden habe.
http://procrastinative.ninja/2014/07...-on-raspberry/
Hi
ich habs zwar nicht getestet, kann ich morgen mal machen, aber hier ist das was ich dazu gefunden habe.
http://procrastinative.ninja/2014/07...-on-raspberry/
| Mfg |
| McGrizzly123 |
OK, vielen Dank für die schnelle Antwort!
Wir werden es auch einmal ausprobieren wenn wir wieder am Projekt weiterarbeiten (Dienstag).
MfG
SGH pRO.BOTICS
Geändert von SGH pRO.BOTICS (05.12.2014 um 14:48 Uhr)
So, da ich es nicht mehr abwarten konnte, habe ich die vorgeschlagene Variante gerade mal (unter Raspbian 3.12.28+) ausprobiert:
Anfangs funktioniert sie auch wunderbar, leider jedoch nur bis zum Punkt ,,python --Version"; Diese Funktion gibt nämlich immer noch Python 2.7.3 zurück, anstatt der vorausgesetzten Python-Version 3.4.1 . . .
Vielleicht gibt es ja noch eine andere Möglichkeit; eine andere I2C-Library wäre auch super.
MfG
SGH pRO.BOTICS
Hat hier wirklich niemand mehr eine Idee?![]()
Im Zweifel Python vom svn laden und selbst kompilieren, wenn es denn das da gibt.
Edit:
Versuch mal
Evtl. musst Du auch statt python einfach irgendwo python3 schreiben.Code:apt-get update apt-get install python3
Geändert von peterfido (15.12.2014 um 15:33 Uhr)
Wenn das Herz involviert ist, steht die Logik außen vor! \/
Hab's gerade mal schnell getestet, aber das war es leider auch nicht.
Python3 ist bereits installiert.
Fakt ist jedenfalls, dass weder:
nochCode:python3 Test.py
funktioniert.Code:sudo python3 Test.py
Unter python1 und python2 kann man ja ganz problemlos die SMBUS-Library nehmen, allerdings sind Tastatureingaben (curses) mit python3 deutlich einfacher/besser zu realisieren.
Ich meine nur, es muss doch irgendeine I2C-Library für python3 geben, oder müssen wir tatsächlich c++ nehmen???
Hat da jemand noch eine andere Idee?
SGH pRO.BOTICS
Ich habe nur zwei gefunden:
und dann nochroot@raspberrypibalkon:~# apt-cache search smbus
python-smbus - Python bindings for Linux SMBus access through i2c-dev
pypy-smbus-cffi - This Python module allows SMBus access through the I2C /dev
root@raspberrypibalkon:~# apt-cache search I2C
i2c-tools - heterogeneous set of I2C tools for Linux
libglui2c2 - GLUI, a C++ GLUT based GUI library - Runtime support
libi2c-dev - userspace I2C programming library development files
libow-2.8-15 - 1-Wire File System full library
libow-dev - 1-Wire File System (development files)
libow-perl - Dallas 1-wire support: Perl5 bindings
libow-php5 - Dallas 1-wire support: PHP5 bindings
libow-tcl - Dallas 1-wire support: Tcl bindings
libowcapi-2.8-15 - 1-Wire File System C library
libownet-2.8-15 - owserver protocol library
libownet-dev - owserver protocol library (development files)
navi2ch - 2channel Navigator for Emacs
ow-shell - shell utilities to talk to an 1-Wire owserver
owfs-dbg - Debugging symbols for the OWFS packages
owfs-fuse - 1-Wire filesystem
owftpd - FTP daemon providing access to 1-Wire networks
owhttpd - HTTP daemon providing access to 1-Wire networks
owserver - Backend server for 1-Wire control
python-ow - Dallas 1-wire support: Python bindings
python-smbus - Python bindings for Linux SMBus access through i2c-dev
sensors-applet - Display readings from hardware sensors in your Gnome panel
softgun - ARM system emulator
xmlrpc-api-utils - Generate C++ wrapper classes for XML-RPC servers
pypy-smbus-cffi - This Python module allows SMBus access through the I2C /dev
root@raspberrypibalkon:~#
Edit:
Hier hat einer das gebaut, was Du suchst.
Geändert von peterfido (15.12.2014 um 20:08 Uhr)
Wenn das Herz involviert ist, steht die Logik außen vor! \/
Lesezeichen