Go to advanced search

by naturesrat
Tue Feb 19, 2019 8:51 am
Forum: Python
Topic: Use NUMPY to store gpio keypad values from matrix in list / array?
Replies: 2
Views: 297

Re: Use NUMPY to store gpio keypad values from matrix in list / array?

I didn't realize it could handle matrices in that way. Thank you!
by naturesrat
Mon Feb 18, 2019 10:40 pm
Forum: Python
Topic: Use NUMPY to store gpio keypad values from matrix in list / array?
Replies: 2
Views: 297

Use NUMPY to store gpio keypad values from matrix in list / array?

I'm using a gpio keypad on a raspberry pi to get number values from a matrix. It currently prints "MATRIX [j]" I want to store an array or list of "MATRIX [j]" values and have it terminate after a specific value (entering a phone number as an array and terminating after # is ente...
by naturesrat
Sat May 14, 2016 2:14 pm
Forum: Python
Topic: i2c multiplexer help? - TCA9548A
Replies: 12
Views: 14881

Re: i2c multiplexer help? - TCA9548A

Hey Tom, this looks promising, thanks! I'm going to give it a shot and play around with it later today One quick question that maybe you can answer is pertaining to the si4703's fixed address (0x10). In your example it's being calling it at that address, which initiates it. So if i'm wanting to use ...
by naturesrat
Sat May 14, 2016 3:32 am
Forum: Python
Topic: i2c multiplexer help? - TCA9548A
Replies: 12
Views: 14881

Re: i2c multiplexer help? - TCA9548A

So i've worked a bit more on this and I can change the channels i'm using on the mux using this code: #!/usr/bin/python import smbus class multiplex: def __init__(self, bus): self.bus = smbus.SMBus(bus) def channel(self, address=0x70,channel=0): # values 0-3 indictae the channel, anything else (eg -...
by naturesrat
Wed May 11, 2016 1:30 am
Forum: Python
Topic: Serial Read and Write in Tkinter with Theading ?
Replies: 0
Views: 2977

Serial Read and Write in Tkinter with Theading ?

I've been building a simple serial monitor based on this code: https://aboesch.wordpress.com/2013/04/28/python-code-gui-for-controlling-serial-port-and-live-monitoring/ My code is utilizing threading, which i've head does not always play nice with GUI's. But I see people have gone down this path bef...
by naturesrat
Mon May 02, 2016 7:07 pm
Forum: Python
Topic: i2c multiplexer help? - TCA9548A
Replies: 12
Views: 14881

Re: i2c multiplexer help? - TCA9548A

Awesome thanks Jeff. I'll dive in deeper with the data sheet and cross ref with that bit of code I found. And if you have any code examples to share / link me to, that would be greatly appreciated. Thanks !
by naturesrat
Fri Apr 29, 2016 8:43 pm
Forum: Python
Topic: i2c multiplexer help? - TCA9548A
Replies: 12
Views: 14881

Re: i2c multiplexer help? - TCA9548A

also, fyi, ive seen lots more info online regarding this mux: pca9548
still very limited in terms of "beginner" level code examples / tutorials

can anybody help steer me in the right direction with the TCA9548A ?
i really thought there would be more info
by naturesrat
Fri Apr 29, 2016 6:37 pm
Forum: Python
Topic: i2c multiplexer help? - TCA9548A
Replies: 12
Views: 14881

i2c multiplexer help? - TCA9548A

Hi, i've just started experimenting with using an i2c multiplexer, i've got it working, but i'm a bit of a python noob so i'm lost on a couple things and i'm wondering if anybody could help point me in the right direction. I bought the TCA9548A from Adafruit and they have example Arduino code but no...
by naturesrat
Thu Apr 28, 2016 5:00 pm
Forum: General discussion
Topic: module gpiozero doesn't exist apparently
Replies: 20
Views: 17488

Re: module gpiozero doesn't exist apparently

haha, yes my test file was called gpiozero.py, and then subsequent files also didnt work because that was still in the directory ...

working now, thank you!!!

(btw, seems pretty great so far!)
by naturesrat
Thu Apr 28, 2016 4:36 am
Forum: General discussion
Topic: module gpiozero doesn't exist apparently
Replies: 20
Views: 17488

Re: module gpiozero doesn't exist apparently

Hi, thanks, yeah i'm sure it works, and i have tried it from terminal, but i'm still getting this weird error (even from terminal) which means there must be something wrong with my gpiozero install .. I've tried to reinstall, but it says gpiozero is already installed, i've followed all of the offici...
by naturesrat
Wed Apr 27, 2016 11:18 pm
Forum: General discussion
Topic: module gpiozero doesn't exist apparently
Replies: 20
Views: 17488

Re: module gpiozero doesn't exist apparently

Hi, i have gpiozero installed, but when I run some example code i get this import error: ImportError: cannot import name LED no idea why, but i'm sure its something stupid. I'm running jessie (2016-03-18) here's the demo code (straight from the rpi site): from gpiozero import LED from time import sl...
by naturesrat
Wed Apr 27, 2016 9:26 pm
Forum: Python
Topic: Python GPIO and Tkinter
Replies: 3
Views: 3860

Re: Python GPIO and Tkinter

Ah, yes i've seen gpiozero before, this looks great, i'm going to study it a bit, thanks! I'm looking to have both the physical button and the tkinter button functional and able to call the home screen That is, the Tkinter gui demo will function as is. So i'm only looking to add a physical "hom...
by naturesrat
Wed Apr 27, 2016 8:30 pm
Forum: Python
Topic: Python GPIO and Tkinter
Replies: 3
Views: 3860

Re: Python GPIO and Tkinter

I found code in this thread: "Push Button Input Troubles" https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=131440&p=890185 import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(24, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) presses = 1 def my_callback(channel): glo...
by naturesrat
Wed Apr 27, 2016 7:12 pm
Forum: Python
Topic: Python GPIO and Tkinter
Replies: 3
Views: 3860

Python GPIO and Tkinter

Hi, I see that there's a similar active thread going about Pygame, but I figured this is related but different. Apologies if I should have posted in that thread. I've been using Raspberry Pi's for a little while, but still a total newb to Python. I've had lots of luck modifying existing code from tu...
by naturesrat
Sat Feb 27, 2016 5:33 am
Forum: General discussion
Topic: multiple webcams for still pictures
Replies: 1
Views: 835

Re: multiple webcams for still pictures

Hi , i'm looking to do something very similar! Which option did you end up going with?

thanks!

Go to advanced search