RPi.GPIO python module for Pine A64/A64+
(04-10-2018, 03:17 AM)xalius Wrote: Are you using spidev?

I'm not sure, but I don't think so. I put my code on github here so you can see what I'm doing.

I initially took the code from Adafruit, but since this library uses a different implementation for SPI (and I2C) I modified it to work on the pine64.

Nokia5110.py is my modified library.
nokia_test2.py draws some shapes and text on the display.
nokia_clock2.py draws a very simple analog clock.
Can you pastebin the debug output you see on your console?
Come have a chat in the Pine A64 IRC channel >>
(04-12-2018, 03:54 AM)xalius Wrote: Can you pastebin the debug output you see on your console?

sure here's a snippet of it:


It looks like whatever is being sent over SPI is also being dumped to the screen. I'd like to be able to turn this off, as it makes it difficult to find anything else that I try printing.
I endeavored to introduce it. Amid the establishment, it gived to me a blunder: 

"Python.h can't discovered record or catalog" 

I am certain to have Python introduced, in such a case that I express "python" in terminal, it returns me the adaptation

Python Training
Has there been any change in this of late? I'm trying to resurrect some old python2 code on my pine64s (and port it to python3) but installing via library by cloning the repo and doing a `sudo python setup.py install` on a fresh build of Manjaro ARM is getting me the dreaded errror:
Traceback (most recent call last):
  File "./pine64-fan-control.py", line 9, in <module>
    from RPi import GPIO as GPIO
  File "/usr/lib/python3.8/site-packages/RPi/GPIO/__init__.py", line 23, in <module>
    from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!

Idealy I'd install it in a venv, but I'm not that far yet, and I've not installed the 'official' RPI version, so basically no idea what's going on now!
I am also interested if anyone ever got event detection (interrupts) to work and if so what modificaitons were made to the dts to enable this?

Possibly Related Threads…
Thread Author Replies Views Last Post
  fm transmitter with gpio weasel18 2 1,017 09-10-2019, 04:28 AM
Last Post: desai_amogh
  How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)? dkebler 1 236 06-12-2019, 10:37 AM
Last Post: dkebler
Lightbulb Sample GPIO codes highlighting RPi.GPIO-PineA64 and the PI bus MarkHaysHarris777 6 2,163 06-07-2019, 12:37 AM
Last Post: tllim
Star GPIO, SPI and I2C C++ Lib databit 7 3,117 02-04-2019, 05:45 AM
Last Post: Jeff R
Information Howto: Controlling Pine64 GPIO via the filesystem (sysfs) on linux pfeerick 4 4,802 01-24-2019, 03:36 AM
Last Post: Fifth
  GPIO and SPI SamR1 20 7,067 03-15-2018, 10:32 AM
Last Post: jomoengineer
Question GPIO shockr 7 4,551 03-11-2018, 01:52 AM
Last Post: jomoengineer
  Read GPIO problem shworker 14 2,834 08-17-2017, 01:21 PM
Last Post: martinayotte
  Cross-wired Uart Ports between two Pine Boards via Cat5 Cable MarkHaysHarris777 10 2,410 11-20-2016, 04:17 AM
Last Post: pfeerick
  GPIO fiq capability joseph 3 1,060 11-10-2016, 06:07 PM
Last Post: joseph

Forum Jump:

Users browsing this thread: 1 Guest(s)