Python Forum
Stop/continue While loop block
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stop/continue While loop block
#36
I'm still learning about the interface on the neotrellis, but each board has it's own I2c connection.

I realize now, that I had the wrong idea of what was needed here. Pin 5 has nothing to do with reading the I2c output, it's a clock pin.

-----------------

Each board also needs an address (same as midi does) to identify itself on the I2C Buss which is
set by soldering the pads on the back of the board (obviously each board must have an address that is different from any other device hooked up to I2c. There is an example (for two boards) here: https://learn.adafruit.com/adafruit-neotrellis.

And this page shows tiling 4 neotrellis boards together: https://learn.adafruit.com/adafruit-neotrellis/tiling using a single I2C connection.
Tiling 32 should be similar

The connection to the pi would be just one I2c connector. (or directly to MCP2221A).

Have you done this on your board?

The only connection between the pi and the neotrellis should be an I2c connector (this thought might change after I have my hardware hooked up)

-----------------

I was going to write a decoder, which requires detection of button down, button up, and a time delay between and resampling in order to prevent key bounce. That's already been done in the hardware, the work on the pi would be different, too early to see how at this point.

-----------------

I expect something like:
  • reading the I2c
  • finding the address on in-coming packet (board number)
  • the button number should be decoded by now, I don't yet know) but if not:
    determining button that is actually pushed based on board location within the 32 board matrix.
and that's it.

I think this can be done directly to a main computer, simply by converting the I2c to USB (thus the MCP2221A General Purpose I2c to USB converter), elimination the Pi or the M4.

It's too soon for me to determine this until I have a working setup.

-----------------

Please tell me more about how you have the 32 boards hooked to each other.
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 378 Mar-18-2024, 10:53 AM
Last Post: DeaD_EyE
  Button to stop while loop from another script Absolutewind 5 981 Sep-25-2023, 11:20 PM
Last Post: deanhystad
  get out of while loop and stop repeat Frankduc 11 3,084 Apr-26-2022, 10:09 PM
Last Post: deanhystad
  while loop will not stop looping TheTechRobo 5 3,799 Apr-20-2020, 01:47 PM
Last Post: TheTechRobo
  for loop stumbling block YoungGrassHopper 8 4,644 Sep-11-2019, 03:34 PM
Last Post: YoungGrassHopper
  while loop stumbling block YoungGrassHopper 5 3,380 Sep-09-2019, 08:36 PM
Last Post: YoungGrassHopper
  How to continue in loop until correct input received sunnyarora 10 10,075 May-04-2019, 02:37 PM
Last Post: Yoriz
  Can I Control loop with Keyboad key (start/stop) Lyperion 2 3,388 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,935 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