Search found 4 matches
- Sat Jan 18, 2020 3:54 pm
- Forum: General Discussion and Questions
- Topic: Rookie question about classes
- Replies: 4
- Views: 2811
- Wed Jan 15, 2020 9:38 am
- Forum: General Discussion and Questions
- Topic: Rookie question about classes
- Replies: 4
- Views: 2811
Re: Rookie question about classes
That cleared it right up, thanks! Additionally, I've tried to trigger the function with an interrupt opto1.sensor.irq(trigger=IRQ_RISING, handler=opto1.stop) and ran into TypeError: function takes 1 argument, but 2 were given I resolved it by changing def stop(self) To def stop(self, waste) and addi...
- Tue Jan 14, 2020 10:42 am
- Forum: General Discussion and Questions
- Topic: Rookie question about classes
- Replies: 4
- Views: 2811
Rookie question about classes
I've got a question about classes. Learning micropython for work related stuff, and I need to use limit switches to stop motors. For ease of expansion, I thought I'd use a class and a function to setup the sensors. I followed the tutorial here https://randomnerdtutorials.com/micropython-programming-...
- Tue Jan 07, 2020 12:53 am
- Forum: General Discussion and Questions
- Topic: search for an inexpensive device to detect housebreaking
- Replies: 19
- Views: 10265
Re: search for an inexpensive device to detect housebreaking
How far apart are the windows? Any chance you could set up a vibration sensor package for each and run them all back to a single processing unit? I don't see any reason one controller couldn't track several sensors and log which was tripped.