question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support CHIP_IO (Next Thing C.H.I.P.)

See original GitHub issue

Type of Raspberry Pi

Next Thing C.H.I.P.

Linux Kernel version

Linux compy386 4.4.13-ntc-mlc #1 SMP Tue Dec 6 21:38:00 UTC 2016 armv7l GNU/Linux

Expected behaviour

Would love to see support for CHIP_IO, the C.H.I.P. version of RPi.GPIO 😃 I bet it would be just a few lines in lib.py and serial.py. (I will try this out myself but I am pretty noob.)

Actual behaviour

Traceback (most recent call last):
  File "st7735.py", line 14, in <module>
    serial = spi(port=0, device=0, bcm_DC=23, bcm_RST=24)
  File "/usr/local/lib/python2.7/dist-packages/luma/core/serial.py", line 163, in __init__
    self._gpio = gpio or self.__rpi_gpio__()
  File "/usr/local/lib/python2.7/dist-packages/luma/core/lib.py", line 23, in __rpi_gpio__
    import RPi.GPIO
ImportError: No module named RPi.GPIO

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
combscommented, Mar 14, 2017

Ha, yeah, just changing two lines in lib.py got me up and running—

    try:
         import CHIP_IO.GPIO
         return CHIP_IO.GPIO
#        import RPi.GPIO
#        return RPi.GPIO

(and using appropriate pins: serial = spi(port=32766, device=0, bcm_DC="CSID1", bcm_RST="CSID0")

0reactions
combscommented, Mar 15, 2017

Hee hee, okay, that explains a lot 😄

oof,

#### iter =    651: render time = 103.80 ms, frame rate = 9.63 FPS

(cpu is still about 30% idle, interestingly)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Next Thing Co Documentation
CHIP supports 802.11b/g/n using the built-in WiFi. Bluetooth. CHIP supports the Bluetooth 4.0 LE standard using the built-in Bluetooth. Physical ...
Read more >
C.H.I.P.
Support. The NextThing Co's C.H.I.P. board is supported using sysfs drivers as well as using high performance memory-mapped I/O for gpio pins.
Read more >
CHIP - The World's First Nine Dollar Computer - Kickstarter
Next Thing Co. is raising funds for CHIP - The World's First Nine ... 39,560 backers pledged $2,071,927 to help bring this project...
Read more >
xtacocorex/CHIP_IO: A CHIP IO library for Python - GitHub
CHIP_IO now supports the ability to enable and disable the 1.8V port on U13. This voltage rail isn't enabled during boot. To use...
Read more >
The Next Thing Co. C.H.I.P. - Johnny-Five.io
C.H.I.P. ! Here's a basic "Hello World" program to get started with Johnny-Five and Chip-IO on your Next Thing Co. C.H.I.P.:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found