2021-01-12 (Tu) Electronic Wind Chimes EWC_OST

My code was copied directly from the EWC_Presenter project and had lots of code I wouldn't need. I poured over everything and removed the bits I thought I wouldn't need. I preserved all the old revisions. When I bring over old code, I usually pick a point and tear through with a heavy hand. I gradually move to a method of seeking out variables and excising them. Finally, I try to compile, and whenever there is an error, I see if it is because of a deleted portion and fix it. This time, I made a list of the functions and variables that weren't going to be useful and tracked them for removal. It worked cleanly, and when I compiled, there were only a few problems that I promptly addressed.

One of the missing functions was checkInputs(), but instead of removing its call, I wrote a new algorithm to read all the digital inputs. The old code used a recycled calculator number pad, so I had to read from a grid, but this project has inputs run directly to pins, so I don't need any fancy code. In addition to reading the state of each button, I also record the rising and falling edges.
Working digital inputs

The rest of the posts for this project have been arranged by date.

First time here?

Completed projects from year 1
Completed projects from year 2
Completed projects from year 3
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6

Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com

This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.

All information in this blog, or linked by this blog, is not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property, or similar, is the responsibility of those involved in the replication.

All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by  Brian McEvoy, cannot be used to claim property or assets.

Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim property or assets based on their post.

This blog, including pictures and text, is copyright to Brian McEvoy.