It is also possible to call functions from the serial monitor ... s really two versions of the code: one for 8-bit AVR processors and another for other Arduino types. We found problems building ...
In my case I ditched the serial port and use port D as a 8-bit port. I was able to use my ATMega8 to emulate an ISA bus cycle to write to an I/O port on a 8255 a few times faster than 3.5us.
As an upgrade to the project, you can add an LCD monitor to the setup and change the code to display the waste level on the ...