Python Forum
Stop/continue While loop block
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stop/continue While loop block
#20
Documents for MCP2221A:
The writeup on the Neotrellis board here: https://learn.adafruit.com/adafruit-neotrellis?view=all
states: These 4x4 button pad boards are fully tile-able and communicate over I2C. With 5 address pins, you've got the ability to connect up to 32 together in any arrangement you like. With our trusty seesaw I2C-to-anything chip, you don't even need to manage the NeoPixel driving. That's right! Both the button management and LED driving is completely handled for you all over plain I2C. With both Arduino/C++ and CircuitPython/Python library support, you can use these pads with any and all microcontroller or computer boards.

Documents for ATSAMD09D14A-MU:
The trusty seesaw I2C-to-anything chip can be seen here: https://learn.adafruit.com/adafruit-sees...9-breakout
it provides:
  • 3 x 12-bit ADC inputs
  • 3 x 8-bit PWM outputs
  • 7 x GPIO with selectable pullup or pulldown
  • 1 x NeoPixel output (up to 63 pixels)
  • 1 x EEPROM with 64 byte of NVM memory (handy for storing small access tokens or MAC addresses)
  • 1 x Interrupt output that can be triggered by any of the accessories
  • 2 x I2C address selection pins
  • 1 x Activity LED

Pinouts for seesaw: https://learn.adafruit.com/adafruit-sees...ut/pinouts

this should connect directly to the MCP2221A which should plug directly into USB-A port and be readable by python.
I will work out details when I have the hardware.

I wrote the code (In 'C', Not python) for the keypad on a well known commercial fish finder with a TI msp430 MCU and made it entirely interrupt driven. I still have that code if I need to fall back on it. It was written for any 4 x 4 matrix.

There should be no need for the raspberry pi.

Quote:Check out the last post on this Adafruit thread about interrupt with Python

https://forums.adafruit.com/viewtopic.php?f=50&t=173615

This doesn't worry me yet. I've done a lot of embedded hardware work, starting back in the early 1980's with the intel 8080A.
I think (won't swear to it yet) I can make it work
Reply


Messages In This Thread
Stop/continue While loop block - by Moris526 - Jan-02-2021, 09:54 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-02-2021, 12:30 PM
RE: Stop/continue While loop block - by Moris526 - Jan-02-2021, 11:35 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-03-2021, 12:22 AM
RE: Stop/continue While loop block - by Moris526 - Jan-03-2021, 12:30 AM
RE: Stop/continue While loop block - by Moris526 - Jan-03-2021, 01:06 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-03-2021, 11:23 AM
RE: Stop/continue While loop block - by Moris526 - Jan-03-2021, 01:37 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-03-2021, 04:33 PM
RE: Stop/continue While loop block - by Moris526 - Jan-04-2021, 01:08 AM
RE: Stop/continue While loop block - by bowlofred - Jan-04-2021, 01:15 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-04-2021, 02:05 AM
RE: Stop/continue While loop block - by Moris526 - Jan-04-2021, 02:28 AM
RE: Stop/continue While loop block - by Moris526 - Jan-04-2021, 02:39 AM
RE: Stop/continue While loop block - by Moris526 - Jan-04-2021, 07:29 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-04-2021, 10:05 AM
RE: Stop/continue While loop block - by Moris526 - Jan-05-2021, 02:21 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-05-2021, 08:01 PM
RE: Stop/continue While loop block - by Moris526 - Jan-06-2021, 06:58 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-06-2021, 10:44 AM
RE: Stop/continue While loop block - by Moris526 - Jan-06-2021, 11:07 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-06-2021, 11:45 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-09-2021, 05:51 AM
RE: Stop/continue While loop block - by Moris526 - Jan-09-2021, 06:58 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-11-2021, 04:00 PM
RE: Stop/continue While loop block - by Moris526 - Jan-11-2021, 08:02 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-11-2021, 10:53 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-13-2021, 03:34 AM
RE: Stop/continue While loop block - by Moris526 - Jan-13-2021, 08:14 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-14-2021, 09:10 PM
RE: Stop/continue While loop block - by Moris526 - Jan-15-2021, 10:01 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-15-2021, 12:48 PM
RE: Stop/continue While loop block - by Moris526 - Jan-15-2021, 06:18 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-15-2021, 10:18 PM
RE: Stop/continue While loop block - by Moris526 - Jan-16-2021, 03:16 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-16-2021, 05:35 PM
RE: Stop/continue While loop block - by Moris526 - Jan-17-2021, 09:25 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-17-2021, 07:05 PM
RE: Stop/continue While loop block - by Moris526 - Jan-18-2021, 01:02 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-18-2021, 05:11 PM
RE: Stop/continue While loop block - by Moris526 - Jan-18-2021, 10:03 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-18-2021, 11:59 PM
RE: Stop/continue While loop block - by Moris526 - Jan-19-2021, 10:58 AM
RE: Stop/continue While loop block - by Larz60+ - Jan-23-2021, 03:00 AM
RE: Stop/continue While loop block - by Moris526 - Jan-23-2021, 10:56 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-23-2021, 11:12 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-24-2021, 09:41 PM
RE: Stop/continue While loop block - by Moris526 - Jan-24-2021, 10:25 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-24-2021, 11:47 PM
RE: Stop/continue While loop block - by Moris526 - Jan-25-2021, 01:37 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-25-2021, 01:44 PM
RE: Stop/continue While loop block - by Moris526 - Jan-25-2021, 07:02 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-26-2021, 01:14 AM
RE: Stop/continue While loop block - by nilamo - Jan-26-2021, 06:41 PM
RE: Stop/continue While loop block - by Larz60+ - Jan-26-2021, 07:57 PM
RE: Stop/continue While loop block - by Moris526 - Jan-27-2021, 12:42 AM
RE: Stop/continue While loop block - by Larz60+ - Feb-01-2021, 10:36 AM
RE: Stop/continue While loop block - by Moris526 - Feb-01-2021, 08:11 PM
RE: Stop/continue While loop block - by Moris526 - Feb-09-2021, 11:23 PM
RE: Stop/continue While loop block - by Larz60+ - Feb-09-2021, 11:28 PM
RE: Stop/continue While loop block - by Moris526 - Feb-10-2021, 03:10 PM
RE: Stop/continue While loop block - by Moris526 - Mar-01-2021, 08:24 PM
RE: Stop/continue While loop block - by Larz60+ - Mar-01-2021, 09:45 PM
RE: Stop/continue While loop block - by Moris526 - Mar-24-2021, 06:29 PM
RE: Stop/continue While loop block - by Larz60+ - Mar-24-2021, 07:04 PM
RE: Stop/continue While loop block - by Moris526 - Mar-26-2021, 12:20 AM
RE: Stop/continue While loop block - by Larz60+ - Mar-26-2021, 01:32 AM
RE: Stop/continue While loop block - by Moris526 - Mar-28-2021, 04:13 PM
RE: Stop/continue While loop block - by Larz60+ - Mar-28-2021, 09:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Anyway to stop a thread and continue it? dimidgen 2 449 Mar-18-2024, 10:53 AM
Last Post: DeaD_EyE
  Button to stop while loop from another script Absolutewind 5 1,056 Sep-25-2023, 11:20 PM
Last Post: deanhystad
  get out of while loop and stop repeat Frankduc 11 3,192 Apr-26-2022, 10:09 PM
Last Post: deanhystad
  while loop will not stop looping TheTechRobo 5 3,884 Apr-20-2020, 01:47 PM
Last Post: TheTechRobo
  for loop stumbling block YoungGrassHopper 8 4,765 Sep-11-2019, 03:34 PM
Last Post: YoungGrassHopper
  while loop stumbling block YoungGrassHopper 5 3,457 Sep-09-2019, 08:36 PM
Last Post: YoungGrassHopper
  How to continue in loop until correct input received sunnyarora 10 10,197 May-04-2019, 02:37 PM
Last Post: Yoriz
  Can I Control loop with Keyboad key (start/stop) Lyperion 2 3,453 Jul-28-2018, 10:19 AM
Last Post: Lyperion
  build a list (add_animals) using a while loop, stop adding when an empty string is en nikhilkumar 1 8,993 Jul-17-2017, 03:29 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020